summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-28 15:02:38 +0100
committerMartin Fischer <martin@push-f.com>2022-01-03 07:01:49 +0100
commit8a0810cedce946ff0694f2ed10cfa3c837d93b06 (patch)
tree1d47f87e98e5b06984fb7b48f1501ac02954f7b5 /searx
parent458b7fb72d9429af346578ba37625f3d45607f03 (diff)
downloadsearxng-8a0810cedce946ff0694f2ed10cfa3c837d93b06.tar.gz
searxng-8a0810cedce946ff0694f2ed10cfa3c837d93b06.zip
[fix] bang syntax for categories with spaces
Diffstat (limited to 'searx')
-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: