http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9798
Revision: 9798
Author: xqt
Date: 2011-12-12 06:18:30 +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. Update from trunk r9797.
Modified Paths:
--------------
branches/rewrite/pywikibot/textlib.py
Modified: branches/rewrite/pywikibot/textlib.py
===================================================================
--- branches/rewrite/pywikibot/textlib.py 2011-12-12 06:12:10 UTC (rev 9797)
+++ branches/rewrite/pywikibot/textlib.py 2011-12-12 06:18:30 UTC (rev 9798)
@@ -701,7 +701,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
@@ -834,5 +834,3 @@
# Add it to the result
result.append((name, params))
return result
-
-