mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Woops, left debug logic in last commit.
This commit is contained in:
@@ -79,14 +79,12 @@ def gatherCustomExclusions():
|
||||
moreEntries = False
|
||||
|
||||
def excludeDomain(domain):
|
||||
print 'in exclude domain'
|
||||
exclusionRegexs.append(re.compile(EXCLUSION_PATTERN + domain))
|
||||
|
||||
def matchesExclusions(strippedRule):
|
||||
strippedDomain = strippedRule.split()[1]
|
||||
for exclusionRegex in exclusionRegexs:
|
||||
if exclusionRegex.search(strippedDomain):
|
||||
print 'Domain ' + strippedDomain + ' matched exclusions'
|
||||
return True
|
||||
return False
|
||||
# End Exclusion Logic
|
||||
|
||||
Reference in New Issue
Block a user