[stickynotes-antispam] Treat html$ as URL
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [stickynotes-antispam] Treat html$ as URL
- Date: Sun, 5 Apr 2020 17:53:30 +0000 (UTC)
commit 2c9c21a6f4d08f3ad6f2a2f1db3ee294d6edd00b
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Sun Apr 5 19:53:06 2020 +0200
Treat html$ as URL
stickynotes-antispam.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index 097cb38..1383fc6 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -30,6 +30,8 @@ def check_if_spam(data):
for line in lines:
if re.search("http[s]?://", line, re.IGNORECASE):
link_count += 1
+ elif re.search("html$", line, re.IGNORECASE):
+ link_count += 1
if link_count >= 2:
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]