summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2017-01-12 16:17:29 +0100
committerAlexandre Flament <alex@al-f.net>2017-01-12 16:17:29 +0100
commit448903cd4abb6da2e016648a3e1b7d74f85f27df (patch)
treece1cf0884b3f19fe2c2f0fb6dfa54b978b576663 /searx/query.py
parentd6cbc6b78be5e97cae8a12fb18ace9d51be5df55 (diff)
downloadsearxng-448903cd4abb6da2e016648a3e1b7d74f85f27df.tar.gz
searxng-448903cd4abb6da2e016648a3e1b7d74f85f27df.zip
[fix] searching for "!google_images text" doesn't work (bang with underscore)
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py
index 4a4e5a192..66e38711c 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -95,7 +95,7 @@ class RawTextQuery(object):
# this force a engine or category
if query_part[0] == '!' or query_part[0] == '?':
- prefix = query_part[1:].replace('-', ' ')
+ prefix = query_part[1:].replace('-', ' ').replace('_', ' ')
# check if prefix is equal with engine shortcut
if prefix in engine_shortcuts: