mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 17:11:15 +08: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…
Reference in New Issue
Block a user