mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Fix failing CI test.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user