Skip to content

Commit

Permalink
no-whitespace (or punctuation) posts --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Aug 22, 2016
1 parent 80cc094 commit 11365d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ class FindSpam:
# All-caps text
{'method': all_caps_text, 'all': True, 'sites': ["pt.stackoverflow.com", "ru.stackoverflow.com", "es.stackoverflow.com", "ja.stackoverflow.com", "rus.stackexchange.com"],
'reason': "all-caps {}", 'title': False, 'body': True, 'questions': False, 'username': False, 'stripcodeblocks': True, 'body_summary': False, 'max_rep': 1, 'max_score': 0},
# No whitespace, punctuation, or formatting in a post
{'regex': ur"(?i)^[a-z]+$", 'all': True, 'sites': ["codegolf.stackexchange.com", "puzzling.stackexchange.com"],
'reason': "no whitespace in {}", 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'max_rep': 1, 'max_score': 0},
# Numbers-only title
{'regex': ur"^(?=.*[0-9])[^\pL]*$", 'all': True, 'sites': ["math.stackexchange.com"], 'reason': "numbers-only title", 'title': True, 'body': False, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'max_rep': 50, 'max_score': 0},
# Few unique characters
Expand Down

0 comments on commit 11365d0

Please sign in to comment.