This commit is contained in:
Jude Nelson
2018-02-12 19:34:18 -05:00
parent 803630f02f
commit c6c75e0646

View File

@@ -105,7 +105,7 @@ def is_address_subdomain(fqa):
If it is, returns True and a tuple (subdomain_name, domain)
"""
# do these checks early to avoid pathological names that make re.match take forever
if fqu.count(".") != 2:
if fqa.count(".") != 2:
return False, None, None
grp = re.match(OP_SUBDOMAIN_NAME_PATTERN, fqa)