summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2015-01-10 16:42:57 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2015-01-10 16:42:57 +0100
commit4e2dae30f013d8ef9fd6d22e3f01e38f13f13c11 (patch)
treebc18637a8b235bc7c9027fbb1d897df20f84675f /searx/query.py
parent29a526ff0e33030fc9d1416a9ccfeba93e376664 (diff)
downloadsearxng-4e2dae30f013d8ef9fd6d22e3f01e38f13f13c11.tar.gz
searxng-4e2dae30f013d8ef9fd6d22e3f01e38f13f13c11.zip
[enh] add autocompletion for searx-specific strings
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 9f711e982..cd2b3f423 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -77,7 +77,7 @@ class Query(object):
if lang == lang_id\
or lang_id.startswith(lang)\
or lang == lang_name\
- or lang == country:
+ or lang.replace('_', ' ') == country:
parse_next = True
self.languages.append(lang)
break