diff --git a/django/core/validators.py b/django/core/validators.py index 5e6265e507..28e1ed5403 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -86,7 +86,14 @@ class URLValidator(RegexValidator): hostname_re = r'[a-z' + ul + r'0-9](?:[a-z' + ul + r'0-9-]{0,61}[a-z' + ul + r'0-9])?' # Max length for domain name labels is 63 characters per RFC 1034 sec. 3.1 domain_re = r'(?:\.(?!-)[a-z' + ul + r'0-9-]{1,63}(?