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