Skip to content

Commit

Permalink
Add .ae to pattern-matching TLD rule (#3545)
Browse files Browse the repository at this point in the history
Add .ae to pattern-matching TLD rule
  • Loading branch information
ArtOfCode- committed Dec 4, 2019
2 parents cd540fa + bcb4a9f commit 0c6dc6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findspam.py
Expand Up @@ -2343,9 +2343,9 @@ def religion_troll(s, site):
r"spain|sweden)\w{0,4}\.(com|net)",
sites=["travel.stackexchange.com", "expatriates.stackexchange.com"],
username=True, body_summary=True)
# The TLDs of Iran, Pakistan, and Tokelau in answers
# The TLDs of Iran, Pakistan, United Arab Emirates, or Tokelau in answers
create_rule("pattern-matching website in {}",
r'(?i)http\S*?(?<![/.]tcl)\.(ir|pk|tk)(?=[/"<])',
r'(?i)http\S*?(?<![/.]tcl)\.(ae|ir|pk|tk)(?=[/"<])',
username=True, body_summary=True, question=False)
# Suspicious health-related websites, health sites are exempt
create_rule("pattern-matching website in {}",
Expand Down

0 comments on commit 0c6dc6b

Please sign in to comment.