jayvdb created this task. jayvdb added a subscriber: jayvdb. jayvdb added projects: pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Copying from https://sourceforge.net/p/pywikipediabot/bugs/415/ created 2007-06-04 ``` I am using snapshot-20070131. wikipedia.replaceExceptMathNowikiAndComments() shows a bug if parameter "old" is a regular expression object with a non-inverting lookbehind (?<=blabla) or lookbehind (?=blabla) expression. The bug is due to the following code line in wikipedia.py (line 2182): replace_text = old.sub(new, text[match.start():match.end()]) text[match.start():match.end()] masks out everything but the matching substring, but then there are no parts that could be found in a lookbehind or lookahead operation and it fails. Thanks for your efforts, Falk Steinhauer Wiki Aventurica ``` The fix was 659002c66b7, Jun 5 2007. However unit tests are needed for this. TASK DETAIL https://phabricator.wikimedia.org/T123185 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Aklapper, jayvdb, pywikibot-bugs-list _______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
