Issue #1628: fix — parse out @ characters from lists.

This commit is contained in:
Steven Black
2021-04-26 17:55:39 -04:00
parent 2b167dcce8
commit 023eb7faa7
2 changed files with 6 additions and 1 deletions

View File

@@ -634,7 +634,7 @@ class TestMatchesExclusions(Base):
self.assertTrue(matches_exclusions(domain, exclusion_regexes))
def test_match_raw_list(self):
exclusion_regexes = [r".*\.com", r".*\.org", r".*\.edu"]
exclusion_regexes = [r".*\.com", r".*\.org", r".*\.edu", r".*@.*"]
exclusion_regexes = [re.compile(regex) for regex in exclusion_regexes]
for domain in [
@@ -642,6 +642,7 @@ class TestMatchesExclusions(Base):
"yahoo.com",
"adaway.org",
"education.edu",
"a.stro.lo.gy@45.144.225.135",
]:
self.assertTrue(matches_exclusions(domain, exclusion_regexes))