Browse Source

Merge pull request #825 from dalf/text_query_fix

[fix] searching for "!google_images text" doesn't work
Adam Tauber 7 years ago
parent
commit
9d9a592266
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/query.py

+ 1
- 1
searx/query.py View File

95
 
95
 
96
             # this force a engine or category
96
             # this force a engine or category
97
             if query_part[0] == '!' or query_part[0] == '?':
97
             if query_part[0] == '!' or query_part[0] == '?':
98
-                prefix = query_part[1:].replace('-', ' ')
98
+                prefix = query_part[1:].replace('-', ' ').replace('_', ' ')
99
 
99
 
100
                 # check if prefix is equal with engine shortcut
100
                 # check if prefix is equal with engine shortcut
101
                 if prefix in engine_shortcuts:
101
                 if prefix in engine_shortcuts: