Rebame the regex constants file name to not have compiled inside the name

This commit is contained in:
Clemens Schwaighofer
2025-07-14 15:59:34 +09:00
parent 6c2637ad34
commit e9ccfe7ad2
2 changed files with 5 additions and 1 deletions

View File

@@ -2,9 +2,13 @@
List of regex compiled strings that can be used
"""
import re
EMAIL_REGEX_BASIC = r"""
^[A-Za-z0-9!#$%&'*+\-\/=?^_`{|}~][A-Za-z0-9!#$%:\(\)&'*+\-\/=?^_`{|}~\.]{0,63}
@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(?:\.[A-Za-z0-9-]{1,63}(?<!-))*\.[a-zA-Z]{2,6}$
"""
EMAIL_REGEX_BASIC_COMPILED = re.compile(EMAIL_REGEX_BASIC)
# __END__

View File

@@ -3,7 +3,7 @@ Class of checks that can be run on value entries
"""
from typing import TypedDict
from corelibs.check_handling.regex_compiled_constants import EMAIL_REGEX_BASIC
from corelibs.check_handling.regex_constants import EMAIL_REGEX_BASIC
class SettingsLoaderCheckValue(TypedDict):