From 8a0810cedce946ff0694f2ed10cfa3c837d93b06 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 28 Dec 2021 15:02:38 +0100 Subject: [PATCH] [fix] bang syntax for categories with spaces --- searx/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/query.py b/searx/query.py index b7f64fe82..5d2d9de26 100644 --- a/searx/query.py +++ b/searx/query.py @@ -222,7 +222,7 @@ class BangParser(QueryPartParser): # check if query starts with categorie name for category in categories: if category.startswith(value): - self._add_autocomplete(first_char + category) + self._add_autocomplete(first_char + category.replace(' ', '_')) # check if query starts with engine name for engine in engines: