fix to not trim in autocomplete
This commit is contained in:
parent
944c35f12c
commit
68961193a8
@ -9,7 +9,6 @@ pub async fn route(Query(params): Query<HashMap<String, String>>) -> impl IntoRe
|
|||||||
.get("q")
|
.get("q")
|
||||||
.cloned()
|
.cloned()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.trim()
|
|
||||||
.replace('\n', " ");
|
.replace('\n', " ");
|
||||||
|
|
||||||
let res = match engines::autocomplete(&query).await {
|
let res = match engines::autocomplete(&query).await {
|
||||||
|
Loading…
Reference in New Issue
Block a user