commit: 448903cd4abb6da2e016648a3e1b7d74f85f27df
parent d6cbc6b78be5e97cae8a12fb18ace9d51be5df55
Author: Alexandre Flament <alex@al-f.net>
Date: Thu, 12 Jan 2017 16:17:29 +0100
[fix] searching for "!google_images text" doesn't work (bang with underscore)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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: