diff --git a/django/core/validators.py b/django/core/validators.py
index 796c57e..cf5ec7a 100644
a
|
b
|
class EmailValidator(object):
|
89 | 89 | r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-\011\013\014\016-\177])*"$)', # quoted-string |
90 | 90 | re.IGNORECASE) |
91 | 91 | domain_regex = re.compile( |
92 | | r'(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,})\.?$' # domain |
| 92 | r'(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,})$' # domain |
93 | 93 | # literal form, ipv4 address (SMTP 4.1.3) |
94 | 94 | r'|^\[(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}\]$', |
95 | 95 | re.IGNORECASE) |
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index 367bd43..e3f418e 100644
a
|
b
|
TEST_DATA = (
|
56 | 56 | # Quoted-string format (CR not allowed) |
57 | 57 | (validate_email, '"\\\011"@here.com', None), |
58 | 58 | (validate_email, '"\\\012"@here.com', ValidationError), |
| 59 | (validate_email, 'trailingdot@shouldfail.com.', ValidationError), |
59 | 60 | |
60 | 61 | (validate_slug, 'slug-ok', None), |
61 | 62 | (validate_slug, 'longer-slug-still-ok', None), |