mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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:
|
||||
g = True
|
||||
flags = filter('g'.__ne__, flags)
|
||||
r = perlReToPythonRe('/'.join(('', regexp, flags)))
|
||||
r = perlReToPythonRe(sep.join(('', regexp, flags)))
|
||||
if g:
|
||||
return curry(r.sub, replace)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user