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
|
moreEntries = False
|
||||||
|
|
||||||
def excludeDomain(domain):
|
def excludeDomain(domain):
|
||||||
print 'in exclude domain'
|
|
||||||
exclusionRegexs.append(re.compile(EXCLUSION_PATTERN + domain))
|
exclusionRegexs.append(re.compile(EXCLUSION_PATTERN + domain))
|
||||||
|
|
||||||
def matchesExclusions(strippedRule):
|
def matchesExclusions(strippedRule):
|
||||||
strippedDomain = strippedRule.split()[1]
|
strippedDomain = strippedRule.split()[1]
|
||||||
for exclusionRegex in exclusionRegexs:
|
for exclusionRegex in exclusionRegexs:
|
||||||
if exclusionRegex.search(strippedDomain):
|
if exclusionRegex.search(strippedDomain):
|
||||||
print 'Domain ' + strippedDomain + ' matched exclusions'
|
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
# End Exclusion Logic
|
# End Exclusion Logic
|
||||||
|
|||||||
Reference in New Issue
Block a user