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.
pywikibot-commits@lists.wikimedia.org