Skip to content

Commit

Permalink
Improved spam regex
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Nov 12, 2014
1 parent 5bc3b91 commit 82e7e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Expand Up @@ -4,7 +4,7 @@

class FindSpam:
rules = [
{'regex': u"(?i)\\b(baba(ji)?|nike|vashi?k[ae]r[ae]n|sumer|kolcak|porn|molvi|judi bola|ituBola.com|lost lover|11s|acai|skin care|me2.do|black magic|bam2u|Neuro3X|Xtreme Antler)\\b|ಌ", 'all': True,
{'regex': u"(?i)\\b(baba(ji)?|nike|vashi?k[ae]r[ae]n|sumer|kolcak|porn|molvi|judi bola|ituBola.com|lost lover|11s|acai|skin care|me2.do|black magic|bam2u|Neuro3X|Xtreme Antler|fake (passports?|driver'?s? licen[cs]e|ID cards?))\\b|ಌ", 'all': True,
'sites': [], 'reason': "Bad keyword in {}", 'title': True, 'username': True},
{'regex': u"(?i)\\b(weight loss|muscles? build(ing)?|muscles?( (grow(th)?|diets?))?)\\b", 'all': True,
'sites': ["fitness.stackexchange.com"], 'reason': "Bad keyword in {}", 'title': True, 'username': True},
Expand Down

0 comments on commit 82e7e19

Please sign in to comment.