mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
Fixed typo in regex for IPv6 literals in EmailValidator.
This commit is contained in:
parent
61d92c650f
commit
ee46722cb9
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class EmailValidator:
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
literal_regex = _lazy_re_compile(
|
literal_regex = _lazy_re_compile(
|
||||||
# literal form, ipv4 or ipv6 address (SMTP 4.1.3)
|
# literal form, ipv4 or ipv6 address (SMTP 4.1.3)
|
||||||
r'\[([A-f0-9:.]+)\]\Z',
|
r'\[([A-F0-9:.]+)\]\Z',
|
||||||
re.IGNORECASE)
|
re.IGNORECASE)
|
||||||
domain_allowlist = ['localhost']
|
domain_allowlist = ['localhost']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue