From 68961193a8c1befc6c3d8aefcd93fcbb7d5c13a1 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 21 Dec 2023 03:07:12 -0600 Subject: [PATCH] fix to not trim in autocomplete --- src/web/autocomplete.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/web/autocomplete.rs b/src/web/autocomplete.rs index 4cdce19..7d5b671 100644 --- a/src/web/autocomplete.rs +++ b/src/web/autocomplete.rs @@ -9,7 +9,6 @@ pub async fn route(Query(params): Query>) -> impl IntoRe .get("q") .cloned() .unwrap_or_default() - .trim() .replace('\n', " "); let res = match engines::autocomplete(&query).await {