mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
XXX
This commit is contained in:
parent
3ba8958a08
commit
c958ef5d1c
@ -262,6 +262,7 @@ def perlReToReplacer(s):
|
|||||||
else:
|
else:
|
||||||
return lambda s: r.sub(replace, s, 1)
|
return lambda s: r.sub(replace, s, 1)
|
||||||
|
|
||||||
|
# XXX Should we find a way to allow $1, $2, etc.?
|
||||||
_perlVarSubstituteRe = re.compile(r'\$\{([^}]+)\}|\$([a-zA-Z][a-zA-Z0-9]*)')
|
_perlVarSubstituteRe = re.compile(r'\$\{([^}]+)\}|\$([a-zA-Z][a-zA-Z0-9]*)')
|
||||||
def perlVariableSubstitute(vars, text):
|
def perlVariableSubstitute(vars, text):
|
||||||
def replacer(m):
|
def replacer(m):
|
||||||
|
Loading…
Reference in New Issue
Block a user