jenkins-bot has submitted this change and it was merged.

Change subject: Ignore URLs containing * in domain name
......................................................................


Ignore URLs containing * in domain name

Bug: T124142
Change-Id: Ie4674b0067e2394c7997e4c45c9ed472ec152a62
---
M scripts/weblinkchecker.py
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py
index ed22c3c..12d096c 100755
--- a/scripts/weblinkchecker.py
+++ b/scripts/weblinkchecker.py
@@ -169,6 +169,10 @@
 
     # bot rejected on the site, already archived
     re.compile(r'.*[\./@]web\.archive\.org(/.*)?'),
+
+    # Ignore links containing * in domain name
+    # as they are intentionally fake
+    re.compile(r'https?\:\/\/\*(/.*)?'),
 ]
 
 

-- 
To view, visit https://gerrit.wikimedia.org/r/265557
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie4674b0067e2394c7997e4c45c9ed472ec152a62
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: MtDu <justin.d...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to