Fix failing CI test.

This commit is contained in:
Steven Black
2023-01-27 22:57:22 -05:00
parent 9bcc4f2bcf
commit 32edd9298d

View File

@@ -1063,7 +1063,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments):
next try: Keep RAW domain. next try: Keep RAW domain.
""" """
# deny any potential IPv6 address here. # deny any potential IPv6 address here.
if not ":" in rule: if ":" not in rule:
regex = r"^\s*([\w\.-]+[a-zA-Z])(.*)" regex = r"^\s*([\w\.-]+[a-zA-Z])(.*)"
result = re.search(regex, rule) result = re.search(regex, rule)