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:
parent
92fea20839
commit
af3a370704
@ -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 "", ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user