Skip to content

Commit

Permalink
Nested quote blocks: don't report if no link
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Jul 16, 2015
1 parent ca29c3e commit 9ed5f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findspam.py
Expand Up @@ -176,8 +176,8 @@ class FindSpam:
'sites': [], 'reason': "Korean character in {}", 'title': True, 'body': False, 'username': False, 'stripcodeblocks': False, 'body_summary': False},
{'regex': u"(?i)(>>>>|===>|==>>>)(?s).*http", 'all': True,
'sites': [], 'reason': "Bad keyword in {}", 'title': True, 'body': True, 'username': True, 'stripcodeblocks': True, 'body_summary': False},
{'regex': u"<blockquote>[^\/]*<blockquote>[^\/]*<blockquote>", 'all': True,
'sites': [], 'reason': "Nested quote blocks in {}", 'title': False, 'body': True, 'username': False, 'stripcodeblocks': True, 'body_summary': False},
{'regex': u"<blockquote>\\s*(<blockquote>\\s*)+\\s*<a", 'all': True,
'sites': [], 'reason': "Nested quote blocks with link", 'title': False, 'body': True, 'username': False, 'stripcodeblocks': True, 'body_summary': False},
{'regex': u"(?i)muscle|testosterone|\\b(weight (loo?s[es]|reduction)|body ?build(er|ing)|.*(workout|fitness|diet)[\\w-]*\\.(com|net)|loo?s[es] weight|wrinkles?|diet ?plan|supplements?)\\b", 'all': True,
'sites': ["fitness.stackexchange.com", "biology.stackexchange.com", "health.stackexchange.com"], 'reason': "Bad keyword in {}", 'title': True, 'body': False, 'username': True, 'stripcodeblocks': False, 'body_summary': False},
{'regex': u"(?i)^(?:(?=.*?\\b(?:online|hd)\\b)(?=.*?(?:free|full|unlimited)).*?movies?\\b|(?=.*?\\b(?:acai|kisn)\\b)(?=.*?care).*products?\\b|(?=.*?packer).*mover)", 'all': True,
Expand Down

0 comments on commit 9ed5f17

Please sign in to comment.