Skip to content

Commit

Permalink
+hacktool, fixed link-at-end regex
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Aug 6, 2015
1 parent ef7dce1 commit 12fc9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class FindSpam:
"breasts? enlargement", "best property management", "eduCBA",
"maxman ?power", "niagen", "Testo (X|Black)", "day ?trading ?academy", " %uh ",
"skinology", "folliplex", "ProDermagenix", "yafei ?cable", "MSP ?Hack ?Tool",
"kidney[ -]?bean[ -]?extract", "uggs ?on ?sale", "PhenQ"]
"kidney[ -]?bean[ -]?extract", "uggs ?on ?sale", "PhenQ", "Hack ?Tool ?2015"]
bad_keywords_nwb = [u"ಌ", "babyliss", "garcinia", "acai ?berry", # "nwb" == "no word boundary"
"(eye|skin|aging) ?cream", "b ?a ?m ?((w ?o ?w)|(w ?a ?r))", "online ?it ?guru",
"abam26", "watch2live", "cogniq", "eye ?(serum|lift)", "tophealth", "poker ?online"
Expand Down Expand Up @@ -224,7 +224,7 @@ class FindSpam:
'sites': ["stackoverflow.com", "superuser.com", "serverfault.com", "askubuntu.com", "webapps.stackexchange.com", "salesforce.stackexchange.com", "unix.stackexchange.com"], 'reason': "Email in {}", 'title': True, 'body': True, 'username': False, 'stripcodeblocks': True, 'body_summary': False},
{'regex': u"(?i)(tejveer ?iq|ser?vice pemanas?)", 'all': True, 'sites': [], 'reason': "Blacklisted username", 'title': False, 'body': False, 'username': True, 'stripcodeblocks': False, 'body_summary': False},
{'regex': u"(?i)vs", 'all': False, 'sites': ["patents.stackexchange.com"], 'reason': 'Bad keyword in {}', 'title': True, 'body': False, 'username': False, 'stripcodeblocks': False, 'body_summary': False},
{'regex': u"(?<!>)</a></p>\s*$", 'all': False, 'sites': ["drupal.stackexchange.com", "meta.stackexchange.com"], 'reason': 'Link at end of {}', 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'answers': False},
{'regex': u"(?<!>)</a>\s*</p>\s*$", 'all': False, 'sites': ["drupal.stackexchange.com", "meta.stackexchange.com"], 'reason': 'Link at end of {}', 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'answers': False},
{'regex': u".*<pre>.*", 'all': False, 'sites': ["puzzling.stackexchange.com"], 'reason': 'Code block', 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'report_everywhere': False, 'body_summary': False}
]

Expand Down

0 comments on commit 12fc9e0

Please sign in to comment.