diff --git a/code/settings.py b/code/settings.py index 14b3a8f..9cd1172 100644 --- a/code/settings.py +++ b/code/settings.py @@ -166,7 +166,7 @@ def set(opt, val): if not isinstance(val, str): return False # TODO: This ure not work in EC600N - pattern = ure.compile(r'^(?:(?:\+)86)?1[3-9]\d{9}$') + pattern = ure.compile(r'^(?:(?:\+)86)?1[3-9]\d\d\d\d\d\d\d\d\d$') if pattern.search(val): current_settings['app'][opt] = val return True