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 Sep 27, 2014
1 parent 3aa73dc commit ff4bbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class FindSpam:
rules = [
{'regex': "(?i)\\b(baba(ji)?|nike|vashikaran|sumer|kolcak|porn|molvi|judi bola|ituBola.com|lost lover|11s|acai|skin care|me2.do)\\b", 'all': True,
{'regex': "(?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)\\b", 'all': True,
'sites': [], 'reason': "Bad keyword detected"},
{'regex': "(?i)\\b(weight loss)\\b", 'all': True,
'sites': ["fitness.stackexchange.com"], 'reason': "Bad keyword detected"},
Expand Down

0 comments on commit ff4bbba

Please sign in to comment.