mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-24 13:40:31 +01:00
allow spaces in a geoRadius
This commit is contained in:
parent
13c78e5aa2
commit
4820ac71a6
@ -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::<Result<Vec<f64>, _>>()
|
||||
.map_err(|_| UserError::InvalidCriterionName { name: text.to_string() })?;
|
||||
Ok(Member::Geo([point[0], point[1]]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user