Merge pull request #341 from indrajitr/hostmatch-fix

Honor whitelist exclusion only for domain or subdomain match
This commit is contained in:
Steven Black 2017-07-09 13:13:57 -04:00 committed by GitHub
commit d945d7bcc0

View File

@ -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