Revision: 4470 Author: wikipedian Date: 2007-10-19 10:36:51 +0000 (Fri, 19 Oct 2007)
Log Message: ----------- fixed bug [ 1816352 ] replace.py regex '(?ms)^(.*)$'
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-10-19 09:33:57 UTC (rev 4469) +++ trunk/pywikipedia/wikipedia.py 2007-10-19 10:36:51 UTC (rev 4470) @@ -2782,7 +2782,7 @@ dontTouchRegexes.append(exc) index = 0 markerpos = len(text) - while True: + while index < len(text): match = old.search(text, index) if not match: # nothing left to replace