mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 08:19:17 +02:00
small fixes
This commit is contained in:
parent
727c287856
commit
92c6e88ad3
5 changed files with 7 additions and 8 deletions
|
@ -35,7 +35,9 @@ languages = {}
|
|||
# To filter out invalid codes and dialects.
|
||||
def valid_code(lang_code):
|
||||
# filter invalid codes
|
||||
# sl-SL is technically not invalid, but still a mistake
|
||||
if lang_code[:2] == 'xx'\
|
||||
or lang_code == 'sl-SL'\
|
||||
or lang_code == 'jw'\
|
||||
or lang_code[-2:] == 'UK'\
|
||||
or lang_code[-2:] == 'XA'\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue