Skip to content

Commit

Permalink
-PPCG from linked punctuation --autopull
Browse files Browse the repository at this point in the history
  • Loading branch information
angussidney committed Jul 22, 2017
1 parent 23f2124 commit 39e7374
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,9 @@ class FindSpam:
'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,
'sites': [], 'reason': 'linked punctuation in {}', 'title': False, 'body': True, 'username': False,
'stripcodeblocks': True, 'body_summary': False, 'questions': False, 'max_rep': 11, 'max_score': 1},
'sites': ["codegolf.stackexchange.com"], '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
{'regex': r"(?i)https?://(?!(www\.)?(example|domain)\.(com|net|org))[a-zA-Z0-9_.-]+\.[a-zA-Z]{2,4}|"
r"\w{3,}\.(com|net)\b.*\w{3,}\.(com|net)\b", 'all': True,
Expand Down

0 comments on commit 39e7374

Please sign in to comment.