Skip to content

Commit

Permalink
Remove duplicate regex
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Jun 4, 2015
1 parent e953cdc commit c305fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Expand Up @@ -115,7 +115,7 @@ class FindSpam:
rules = [
{'regex': u"(?i)\\b(%s)\\b|%s" % ("|".join(bad_keywords), "|".join(bad_keywords_nwb)), 'all': True,
'sites': [], 'reason': "Bad keyword in {}", 'title': True, 'body': True, 'username': True, 'stripcodeblocks': False, 'body_summary': True},
{'regex': u"(?i)\\b(baba|nike)\\b|\\p{Script=Hangul}", 'all': True,
{'regex': u"(?i)\\b(baba|nike)\\b", 'all': True,
'sites': [], 'reason': "Bad keyword in {}", 'title': True, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': True},
{'regex': u"(?i)\\p{Script=Hangul}", 'all': True,
'sites': [], 'reason': "Korean character in {}", 'title': True, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': True},
Expand Down

0 comments on commit c305fcb

Please sign in to comment.