Browse Source

[fix] bang syntax for categories with spaces

Martin Fischer 3 years ago
parent
commit
8a0810cedc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/query.py

+ 1 - 1
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: