From: Steven Black Date: Sat, 28 Jan 2023 03:57:22 +0000 (-0500) Subject: Fix failing CI test. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=32edd9298d964e426488e05224bfa05090c76047;p=stevenblack-hosts.git Fix failing CI test. --- diff --git a/updateHostsFile.py b/updateHostsFile.py index 744acda5b..a7403926b 100755 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -1063,7 +1063,7 @@ def normalize_rule(rule, target_ip, keep_domain_comments): next try: Keep RAW domain. """ # deny any potential IPv6 address here. - if not ":" in rule: + if ":" not in rule: regex = r"^\s*([\w\.-]+[a-zA-Z])(.*)" result = re.search(regex, rule)