Skip to content

Commit

Permalink
Merge pull request #627 from Glorfindel83/master --autopull
Browse files Browse the repository at this point in the history
Added surl.cn.com as link shortener
  • Loading branch information
Undo1 committed Apr 12, 2017
2 parents 76e74d3 + 3e20a72 commit 506c028
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,15 @@ class FindSpam:
'stripcodeblocks': False, 'body_summary': False, 'questions': False, 'max_rep': 1, 'max_score': 0},
# Shortened URL near the end of question
{'regex': ur"(?is)://(goo\.gl|bit\.ly|bit\.do|tinyurl\.com|fb\.me|cl\.ly|t\.co|is\.gd|j\.mp|tr\.im|ow\.ly|"
ur"wp\.me|alturl\.com|tiny\.cc|9nl\.me|post\.ly|dyo\.gs|bfy\.tw|amzn\.to)/.{0,200}$", 'all': True,
ur"wp\.me|alturl\.com|tiny\.cc|9nl\.me|post\.ly|dyo\.gs|bfy\.tw|amzn\.to|adf\.ly|adfoc\.us|"
ur"surl\.cn\.com)/.{0,200}$", 'all': True,
'sites': ["superuser.com", "askubuntu.com"], 'reason': "shortened URL in {}", 'title': False, 'body': True,
'username': False, 'stripcodeblocks': True, 'body_summary': False, 'answers': False, 'max_rep': 1,
'max_score': 0},
# Shortened URL in an answer
{'regex': ur"(?is)://(goo\.gl|bit\.ly|bit\.do|tinyurl\.com|fb\.me|cl\.ly|t\.co|is\.gd|j\.mp|tr\.im|ow\.ly|"
ur"wp\.me|alturl\.com|tiny\.cc|9nl\.me|post\.ly|dyo\.gs|bfy\.tw|amzn\.to|adf\.ly|adfoc\.us)/",
ur"wp\.me|alturl\.com|tiny\.cc|9nl\.me|post\.ly|dyo\.gs|bfy\.tw|amzn\.to|adf\.ly|adfoc\.us|"
ur"surl\.cn\.com)/",
'all': True, 'sites': ["codegolf.stackexchange.com"], 'reason': "shortened URL in {}", 'title': False,
'body': True, 'username': False, 'stripcodeblocks': True, 'body_summary': False, 'questions': False,
'max_rep': 1, 'max_score': 0},
Expand Down

0 comments on commit 506c028

Please sign in to comment.