http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9797
Revision: 9797
Author: xqt
Date: 2011-12-12 06:12:10 +0000 (Mon, 12 Dec 2011)
Log Message:
-----------
Textlib.py?\226?\128?\153s compileLinkR should exlude ")" at the end of URLs.
patch bug #3455789 submitted by loxley. Thanks.
Modified Paths:
--------------
trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py
===================================================================
--- trunk/pywikipedia/pywikibot/textlib.py 2011-12-11 13:47:50 UTC (rev 9796)
+++ trunk/pywikipedia/pywikibot/textlib.py 2011-12-12 06:12:10 UTC (rev 9797)
@@ -747,7 +747,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 = '\]\s\.:;,<>"\|'
+ notAtEnd = '\]\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