From 32edd9298d964e426488e05224bfa05090c76047 Mon Sep 17 00:00:00 2001 From: Steven Black Date: Fri, 27 Jan 2023 22:57:22 -0500 Subject: [PATCH] Fix failing CI test. --- updateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)