Skip to content

Commit

Permalink
Add .ae to pattern-matching TLD rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tripleee committed Dec 3, 2019
1 parent 6690c6e commit bcb4a9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findspam.py
Expand Up @@ -2337,9 +2337,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 bcb4a9f

Please sign in to comment.