mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-14 00:00:34 +02:00
Fix whitelisting issue when RAW list are given.
This patch fixes #1687. Indeed, before this patch, the whitelisting of a RAW/Plain list of domain was overlooked.
This commit is contained in:
parent
52d759a680
commit
6299aebe61
@ -955,7 +955,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for exclude in exclusions:
|
for exclude in exclusions:
|
||||||
if re.search(r"[\s\.]" + re.escape(exclude) + r"\s", line):
|
if re.search(r"(^|[\s\.])" + re.escape(exclude) + r"\s", line):
|
||||||
write_line = False
|
write_line = False
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user