Skip to content

Commit

Permalink
Merge pull request #1536 from iBug/patch-2
Browse files Browse the repository at this point in the history
Improve "no whitespace" detection --autopull
  • Loading branch information
ArtOfCode- committed Jan 22, 2018
2 parents 2fa98dd + a0586c1 commit eb147dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Expand Up @@ -1096,7 +1096,7 @@ class FindSpam:
'stripcodeblocks': True, 'body_summary': False,
'max_rep': 101, 'max_score': 5},
# No whitespace, punctuation, or formatting in a post
{'regex': r"(?i)^<p>\S+</p>\s*$", 'all': True, 'sites': ["codegolf.stackexchange.com",
{'regex': r"(?i)^<p>\w+</p>\s*$", '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},
Expand Down

0 comments on commit eb147dd

Please sign in to comment.