diff --git a/src/main.rs b/src/main.rs index a9703f4..f036bf8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,7 +153,7 @@ fn add_searchbox(res: &mut String, query: &Option) -> std::fmt::Result { fn compute_results(raw_query: String) -> AnyResult { let mut body = String::with_capacity(10_000); - let (raw_filters, query) = match parser::parse_filters(&raw_query) { + let (raw_filters, query) = match parser::parse_filters(&raw_query.trim()) { Ok(q) => q, Err(e) => { let s = format!("Could not parse query: {e:?}");