mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
lint
This commit is contained in:
parent
4d595d70de
commit
1ef8e66ed1
@ -222,8 +222,8 @@ class EmailValidator:
|
||||
re.IGNORECASE,
|
||||
)
|
||||
domain_regex = _lazy_re_compile(
|
||||
r"(?i)^(?!.*[\r\n])" # Negative look-ahead disallowing \r or \n
|
||||
r"(?:" + host_re + domain_re +
|
||||
# Negative look-ahead disallowing \r or \n
|
||||
r"(?i)^(?!.*[\r\n])" r"(?:" + host_re + domain_re +
|
||||
# Final TLD label:
|
||||
r"\.(?!-)(?:[a-z" + ul + r"0-9-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)" r")$",
|
||||
re.IGNORECASE,
|
||||
|
Loading…
Reference in New Issue
Block a user