trim whitespace from query
This commit is contained in:
parent
cb60970924
commit
51c3847aeb
@ -153,7 +153,7 @@ fn add_searchbox(res: &mut String, query: &Option<String>) -> std::fmt::Result {
|
|||||||
|
|
||||||
fn compute_results(raw_query: String) -> AnyResult<PageData> {
|
fn compute_results(raw_query: String) -> AnyResult<PageData> {
|
||||||
let mut body = String::with_capacity(10_000);
|
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,
|
Ok(q) => q,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let s = format!("Could not parse query: {e:?}");
|
let s = format!("Could not parse query: {e:?}");
|
||||||
|
Loading…
Reference in New Issue
Block a user