mirror of https://github.com/searxng/searxng.git
[fix] bang syntax for categories with spaces
This commit is contained in:
parent
458b7fb72d
commit
8a0810cedc
|
@ -222,7 +222,7 @@ class BangParser(QueryPartParser):
|
||||||
# check if query starts with categorie name
|
# check if query starts with categorie name
|
||||||
for category in categories:
|
for category in categories:
|
||||||
if category.startswith(value):
|
if category.startswith(value):
|
||||||
self._add_autocomplete(first_char + category)
|
self._add_autocomplete(first_char + category.replace(' ', '_'))
|
||||||
|
|
||||||
# check if query starts with engine name
|
# check if query starts with engine name
|
||||||
for engine in engines:
|
for engine in engines:
|
||||||
|
|
Loading…
Reference in New Issue