diff options
Diffstat (limited to 'searx/webutils.py')
-rw-r--r-- | searx/webutils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/webutils.py b/searx/webutils.py index bf50dbc25..8be8fcecd 100644 --- a/searx/webutils.py +++ b/searx/webutils.py @@ -12,6 +12,8 @@ from codecs import getincrementalencoder from searx import logger +VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$') + logger = logger.getChild('webutils') |