jenkins-bot has submitted this change and it was merged. Change subject: Ignore URLs in fullurl template ......................................................................
Ignore URLs in fullurl template Bug: T124141 Change-Id: I219c5a7cb45226a41cc60e04ffbb54e1311ec695 --- M scripts/weblinkchecker.py 1 file changed, 3 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 12d096c..99bef29 100755 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -224,6 +224,9 @@ """ text = textlib.removeDisabledParts(text) + # Ignore links in fullurl template + text = re.sub(r'{{\s?fullurl:.[^}]*}}', '', text) + # MediaWiki parses templates before parsing external links. Thus, there # might be a | or a } directly after a URL which does not belong to # the URL itself. -- To view, visit https://gerrit.wikimedia.org/r/265651 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I219c5a7cb45226a41cc60e04ffbb54e1311ec695 Gerrit-PatchSet: 8 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: MtDu <justin.d...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: MtDu <justin.d...@gmail.com> Gerrit-Reviewer: Ricordisamoa <ricordisa...@openmailbox.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ Pywikibot-commits mailing list Pywikibot-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits