summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-06 09:22:02 +0100
committerGitHub <noreply@github.com>2022-01-06 09:22:02 +0100
commitaedd6279b3d13778aab5d401ee3b9d4d247365c4 (patch)
treec10d95ca4eb907d269df2b6392567d15765f0dec /searx/query.py
parent0ebad8220fe574c690d113d7e9d6a85f5ac16616 (diff)
parenta4c2cfb837a3f92e2c0f0b8a0bac7a6e03499640 (diff)
Merge pull request #634 from not-my-profile/powered-by
Introduce `categories_as_tabs` & group engines in tabs
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py2
1 files changed, 1 insertions, 1 deletions
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: