diff options
| author | Alexandre Flament <alex@al-f.net> | 2023-02-20 12:17:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 12:17:38 +0100 |
| commit | d669da81fbe820df2d97c98560d00dee32979dc9 (patch) | |
| tree | 4cbaf3332893934640c8ff0724bcc2019b579618 /searx/query.py | |
| parent | 60e181607def7b48185728e1fd395c0036bd65fb (diff) | |
| parent | 0b1444b61eb12a2d23d4c95e2440f24161daaec7 (diff) | |
Merge pull request #2027 from dalf/fix_2018
Add "auto" as a language.
Diffstat (limited to 'searx/query.py')
| -rw-r--r-- | searx/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py index b8e1c1275..dbc52ec75 100644 --- a/searx/query.py +++ b/searx/query.py @@ -104,7 +104,7 @@ class LanguageParser(QueryPartParser): break # user may set a valid, yet not selectable language - if VALID_LANGUAGE_CODE.match(value): + if VALID_LANGUAGE_CODE.match(value) or value == 'auto': lang_parts = value.split('-') if len(lang_parts) > 1: value = lang_parts[0].lower() + '-' + lang_parts[1].upper() |