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")
.cloned()
.unwrap_or_default()
.trim()
.replace('\n', " ");
let res = match engines::autocomplete(&query).await {