1
0
mirror of https://github.com/django/django.git synced 2025-01-27 02:29:55 +00:00

Fixed regex error.

This commit is contained in:
GappleBee 2024-11-22 22:17:14 +00:00
parent 92fea20839
commit af3a370704

View File

@ -1,6 +1,7 @@
import codecs
import copy
import operator
import re
from collections import namedtuple
from io import BytesIO
from itertools import chain
@ -814,7 +815,7 @@ def split_domain_port(host):
"""
host = host.lower()
host_match = host_validation_re.match(host)
host_match = re.match(host_validation_re, host)
if not host_match:
return "", ""