From a40ec5b180b6ed0cb1bf3805a0af1fabd86a2a9e Mon Sep 17 00:00:00 2001 From: tripleee Date: Wed, 15 Nov 2017 20:48:01 +0200 Subject: [PATCH] FP fix for tcl.tk Exclude the main TCL site from the *.tk answer regexes --- findspam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/findspam.py b/findspam.py index e7ac70456b..84d0bf9430 100644 --- a/findspam.py +++ b/findspam.py @@ -857,7 +857,7 @@ class FindSpam: 'reason': "pattern-matching website in {}", 'title': True, 'body': True, 'username': True, 'stripcodeblocks': False, 'body_summary': True, 'max_rep': 1, 'max_score': 0}, # The TLDs of Iran, Pakistan, and Tokelau in answers - {'regex': r'(?i)http\S*\.(ir|pk|tk)[/"<]', 'all': True, + {'regex': r'(?i)http\S*(?)?\W*

\s*$', 'all': True, + {'regex': r'(?is)\w{3}(?)?\W*

\s*$', 'all': True, 'sites': [], 'reason': 'pattern-matching website in {}', 'title': False, 'body': True, 'username': False, 'stripcodeblocks': False, 'body_summary': False, 'questions': False, 'max_rep': 1, 'max_score': 0}, # non-linked site at the end of a short answer