mirror of
https://github.com/searxng/searxng.git
synced 2025-09-01 15:58:37 +02:00
[mod] preferences.py: check language setting with a regex instead of match_language
This commit is contained in:
parent
fd5fe36984
commit
507896c115
4 changed files with 8 additions and 8 deletions
|
@ -22,9 +22,7 @@ import re
|
|||
from searx.languages import language_codes
|
||||
from searx.engines import categories, engines, engine_shortcuts
|
||||
from searx.search import EngineRef
|
||||
|
||||
|
||||
VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$')
|
||||
from searx.webutils import VALID_LANGUAGE_CODE
|
||||
|
||||
|
||||
class RawTextQuery:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue