mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
fix alternate separator with slash in first part of regexp
This commit is contained in:
parent
6b19504515
commit
7aae5ae41e
@ -173,7 +173,7 @@ def perlReToReplacer(s):
|
|||||||
if 'g' in flags:
|
if 'g' in flags:
|
||||||
g = True
|
g = True
|
||||||
flags = filter('g'.__ne__, flags)
|
flags = filter('g'.__ne__, flags)
|
||||||
r = perlReToPythonRe('/'.join(('', regexp, flags)))
|
r = perlReToPythonRe(sep.join(('', regexp, flags)))
|
||||||
if g:
|
if g:
|
||||||
return curry(r.sub, replace)
|
return curry(r.sub, replace)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user