[fix] bang syntax for categories with spaces

This commit is contained in:
Martin Fischer 2021-12-28 15:02:38 +01:00
parent 458b7fb72d
commit 8a0810cedc
1 changed files with 1 additions and 1 deletions

View File

@ -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: