Closed mrshu closed 9 years ago
@pepol this fixes the bug you saw earlier today
cc @Adman
to @pepol
@mrshu are you sure? From what I saw, the bug is in the fact that it takes the ending separator as part of replacement, which is should not, obviously...
@pepol that's a separate issue. This fixes the s/++/++++
issue.
I see.
LGTM, then, go ahead and merge it.
@pepol the other problem is the+ in r'^s([^ a-zA-Z0-9])(.*?)\1(.*?)(?:\1(.+?))?$'
. That boils down to this issue with older python re
s. Will see if I can get around that.
@mrshu why not put ([^\1]+)
or something like that there?
@pepol that's probably also possible, I did it in a bit more obvious way.
Well, LGTM then! Thanks @mrshu
Signed-off-by: mr.Shu mr@shu.io