From 4820ac71a66de224979a03260c20bbb03796cf56 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 31 Aug 2021 18:48:40 +0200 Subject: [PATCH] allow spaces in a geoRadius --- milli/src/criterion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/criterion.rs b/milli/src/criterion.rs index 2bca6948b..35268461e 100644 --- a/milli/src/criterion.rs +++ b/milli/src/criterion.rs @@ -84,7 +84,7 @@ impl FromStr for Member { .ok_or_else(|| UserError::InvalidCriterionName { name: text.to_string() })?; let point = point .split(',') - .map(|el| el.parse()) + .map(|el| el.trim()).parse() .collect::, _>>() .map_err(|_| UserError::InvalidCriterionName { name: text.to_string() })?; Ok(Member::Geo([point[0], point[1]]))