1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 04:01:40 +01:00

[fix] searching for "!google_images text" doesn't work (bang with underscore)

This commit is contained in:
Alexandre Flament 2017-01-12 16:17:29 +01:00
parent d6cbc6b78b
commit 448903cd4a

View File

@ -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: