http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11509
Revision: 11509 Author: xqt Date: 2013-05-09 12:20:22 +0000 (Thu, 09 May 2013) Log Message: ----------- link_regex does not match "#" inside links. We use RLink instead.
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2013-05-05 19:05:10 UTC (rev 11508) +++ trunk/pywikipedia/pywikibot/textlib.py 2013-05-09 12:20:22 UTC (rev 11509) @@ -1013,7 +1013,7 @@ # Replace wikilinks with markers links = {} count2 = 0 - for m2 in pywikibot.link_regex.finditer(paramString): + for m2 in pywikibot.Rlink.finditer(paramString): count2 += 1 item = m2.group(0) paramString = paramString.replace(