Skip to content

Commit

Permalink
Merge pull request #772 from j-f1/patch-1
Browse files Browse the repository at this point in the history
Don’t trigger “Linked punctuation in answer” if the text is `><>`
  • Loading branch information
angussidney committed May 21, 2017
2 parents 1e87f90 + c0a4c9d commit e4dade5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ class FindSpam:
'sites': [], 'reason': 'one-character link in {}', 'title': False, 'body': True, 'username': False,
'stripcodeblocks': True, 'body_summary': False, 'max_rep': 11, 'max_score': 1},
# Link text consists of punctuation, answers only
{'regex': r'(?iu)rel="nofollow( noreferrer)?">\W+</a>', 'all': True,
{'regex': r'(?iu)rel="nofollow( noreferrer)?">(?!><>)\W+</a>', 'all': True,
'sites': [], 'reason': 'linked punctuation in {}', 'title': False, 'body': True, 'username': False,
'stripcodeblocks': True, 'body_summary': False, 'questions': False, 'max_rep': 11, 'max_score': 1},
# URL in title, some sites are exempt
Expand Down

0 comments on commit e4dade5

Please sign in to comment.