git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
9bcc4f2
)
Fix failing CI test.
author
Steven Black
<redacted>
Sat, 28 Jan 2023 03:57:22 +0000
(22:57 -0500)
committer
Steven Black
<redacted>
Sat, 28 Jan 2023 03:57:22 +0000
(22:57 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 744acda5bff019f385106459dca536f050b00a16..a7403926b67ee6ca09bff20abacd84120a58b380 100755
(executable)
--- 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)
git clone https://git.99rst.org/PROJECT