Skip to content

Commit

Permalink
restrict pattern-matching product to questions only
Browse files Browse the repository at this point in the history
  • Loading branch information
angussidney committed Feb 28, 2017
1 parent b14a1c8 commit f65ac88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Expand Up @@ -507,7 +507,7 @@ class FindSpam:
# Pattern-matching product name: three keywords in a row at least once, or two in a row at least twice
{'method': pattern_product_name, 'all': True, 'sites': [], 'reason': "pattern-matching product name in {}",
'title': True, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': True,
'max_rep': 4, 'max_score': 1},
'answers': False, 'max_rep': 4, 'max_score': 1},
# gratis at the beginning of post, SoftwareRecs is exempt
{'regex': ur"(?is)^.{0,200}\bgratis\b$", 'all': True,
'sites': ['softwarerecs.stackexchange.com'], 'reason': "bad keyword in {}", 'title': True, 'body': True,
Expand Down

0 comments on commit f65ac88

Please sign in to comment.