diff options
| author | qimingmafan <yangxiang.cn@hotmail.com> | 2021-08-05 10:15:41 +0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-08-06 12:58:55 +0200 |
| commit | ee46722cb9c860abec4d370adff052d0c1622d34 (patch) | |
| tree | fdf134c217a4ce245c2b2c09591b324df74a00c0 | |
| parent | 61d92c650f5bc363177ebace62e3e8a67ec9499d (diff) | |
| download | django-ee46722cb9c860abec4d370adff052d0c1622d34.tar.gz | |
Fixed typo in regex for IPv6 literals in EmailValidator.
| -rw-r--r-- | django/core/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/validators.py b/django/core/validators.py index e085cd0641..913e38eea4 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -170,7 +170,7 @@ class EmailValidator: re.IGNORECASE) literal_regex = _lazy_re_compile( # literal form, ipv4 or ipv6 address (SMTP 4.1.3) - r'\[([A-f0-9:.]+)\]\Z', + r'\[([A-F0-9:.]+)\]\Z', re.IGNORECASE) domain_allowlist = ['localhost'] |
