[stickynotes-antispam] Delete if 4 or more links are found
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [stickynotes-antispam] Delete if 4 or more links are found
- Date: Wed, 26 Jun 2019 11:32:10 +0000 (UTC)
commit 51b27c1f1e7e9e139e66f3befdf1038c65046adf
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Jun 26 13:21:55 2019 +0200
Delete if 4 or more links are found
stickynotes-antispam.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index e53f28b..c64f929 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -70,7 +70,7 @@ def check_if_spam(data):
if re.match("http[s]?://", line, re.IGNORECASE):
link_count += 1
- if link_count > 4:
+ if link_count >= 4:
mark_for_deletion = True
# Delete pastes with matching keywords
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]