summaryrefslogtreecommitdiff
path: root/searx/autocomplete.py
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-19 22:17:12 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-01-19 22:17:12 +0100
commit4d0aeae567e19e68747fd2869741fee11a4df7c4 (patch)
tree105d9ec29a130bc6661fde9c2910a72c1bfff2af /searx/autocomplete.py
parentbc2d5bf88cd9a3ad5e19c380d3742fb63a2641e2 (diff)
downloadsearxng-4d0aeae567e19e68747fd2869741fee11a4df7c4.tar.gz
searxng-4d0aeae567e19e68747fd2869741fee11a4df7c4.zip
Thanks @pointhi !
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r--searx/autocomplete.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index 39b457298..2777a0ca7 100644
--- a/searx/autocomplete.py
+++ b/searx/autocomplete.py
@@ -49,17 +49,17 @@ def searx_bang(full_query):
# check if query starts with categorie name
for categorie in categories:
if categorie.startswith(engine_query):
- results.append('!{categorie}'.format(categorie=categorie))
+ results.append(first_char+'{categorie}'.format(categorie=categorie))
# check if query starts with engine name
for engine in engines:
if engine.startswith(engine_query.replace('_', ' ')):
- results.append('!{engine}'.format(engine=engine.replace(' ', '_')))
+ results.append(first_char+'{engine}'.format(engine=engine.replace(' ', '_')))
# check if query starts with engine shortcut
for engine_shortcut in engine_shortcuts:
if engine_shortcut.startswith(engine_query):
- results.append('!{engine_shortcut}'.format(engine_shortcut=engine_shortcut))
+ results.append(first_char+'{engine_shortcut}'.format(engine_shortcut=engine_shortcut))
# check if current query stats with :bang
elif first_char == ':':