[enh] add autocompletion for searx-specific strings

This commit is contained in:
Thomas Pointhuber 2015-01-10 16:42:57 +01:00
parent 29a526ff0e
commit 4e2dae30f0
3 changed files with 85 additions and 3 deletions

View file

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