jenkins-bot submitted this change.
[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(-)
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
To view, visit change 926508. To unsubscribe, or for help writing mail filters, visit settings.