mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-04 19:46:02 +02:00
Merge pull request #341 from indrajitr/hostmatch-fix
Honor whitelist exclusion only for domain or subdomain match
This commit is contained in:
commit
d945d7bcc0
|
@ -485,7 +485,7 @@ def remove_dups_and_excl(merge_file):
|
|||
keep_domain_comments=settings["keepdomaincomments"])
|
||||
|
||||
for exclude in exclusions:
|
||||
if exclude in line:
|
||||
if re.search('[\s\.]' + re.escape(exclude) + '\s', line):
|
||||
write_line = False
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user