From 4e2dae30f013d8ef9fd6d22e3f01e38f13f13c11 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Sat, 10 Jan 2015 16:42:57 +0100 Subject: [enh] add autocompletion for searx-specific strings --- searx/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/query.py') 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 -- cgit v1.2.3