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:
funilrys 2021-07-13 20:11:28 +02:00
parent 52d759a680
commit 6299aebe61
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6

View File

@ -955,7 +955,7 @@ def remove_dups_and_excl(merge_file, exclusion_regexes, output_file=None):
)
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
break