mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 22:05:14 +01:00
Merge pull request #341 from indrajitr/hostmatch-fix
Honor whitelist exclusion only for domain or subdomain match
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user