fix to not trim in autocomplete

This commit is contained in:
mat 2023-12-21 03:07:12 -06:00
parent 944c35f12c
commit 68961193a8

View File

@ -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 {