Browse Source

[fix] language query string comparison

asciimoo 11 years ago
parent
commit
9ede9b955d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/search.py

+ 1 - 1
searx/search.py

@@ -78,7 +78,7 @@ class Search(object):
         query_parts = self.query.split()
         modified = False
         if query_parts[0].startswith(':'):
-            lang = query_parts[0][1:]
+            lang = query_parts[0][1:].lower()
 
             for lc in language_codes:
                 lang_id, lang_name, country = map(str.lower, lc)