summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/query.py b/searx/query.py
index 2d5a72bcb..a9f343944 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -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: