http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11361
Revision: 11361 Author: amir Date: 2013-04-08 20:01:03 +0000 (Mon, 08 Apr 2013) Log Message: ----------- fixing bug #3610296
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2013-04-08 13:22:36 UTC (rev 11360) +++ trunk/pywikipedia/pywikibot/textlib.py 2013-04-08 20:01:03 UTC (rev 11361) @@ -252,7 +252,7 @@ 'pre': r'<pre>.*?</pre>', 'source': r'<source .*?</source>', 'syntaxhighlight': r'<syntaxhighlight .*?</syntaxhighlight>', - 'templategoof': r'{{\s*?|.+?}}', + 'templategoof': r'{{\s*?(?:|.+?)*?}}', } if '*' in tags: tags = regexes.keys()
pywikipedia-svn@lists.wikimedia.org