logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 9d9a592266ffc4f257be5c0f7519a19436672cf5
parent: d6cbc6b78be5e97cae8a12fb18ace9d51be5df55
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sun, 15 Jan 2017 14:33:07 +0100

Merge pull request #825 from dalf/text_query_fix

[fix] searching for "!google_images text" doesn't work

Diffstat:

searx/query.py | 2+-
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: