jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/926508 )
Change subject: [bugfix] add curly brackets to notAtEnd string in textlib.compileLinkR ......................................................................
[bugfix] add curly brackets to notAtEnd string in textlib.compileLinkR
Bug: T338029 Change-Id: I780215104224c0e048f065d776a1b81be79613b2 --- M pywikibot/textlib.py 1 file changed, 11 insertions(+), 1 deletion(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index 3c73b34..72e60ca 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -1653,7 +1653,7 @@ # Note: While allowing dots inside URLs, MediaWiki will regard # dots at the end of the URL as not part of that URL. # The same applies to comma, colon and some other characters. - notAtEnd = r']\s.:;,<>"|)' + notAtEnd = r']\s.:;,<>"|)}' # So characters inside the URL can be anything except whitespace, # closing squared brackets, quotation marks, greater than and less # than, and the last character also can't be parenthesis or another
pywikibot-commits@lists.wikimedia.org