Fix regex in Renderer._compile_escape_expressions.
This commit is contained in:
parent
eee5e43549
commit
7244e8778e
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ class Renderer(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
for key, value in unescape_rules.items():
|
for key, value in unescape_rules.items():
|
||||||
exp = r'(?is)(({0}|{1}).*?)({2})(.*?({3}|{4}))'
|
exp = r'(?is)(({0}|{1})[^{0}{1}]*?)({2})([^{3}{4}]*?({3}|{4}))'
|
||||||
key = re.compile(exp.format(
|
key = re.compile(exp.format(
|
||||||
self.environment.variable_start_string,
|
self.environment.variable_start_string,
|
||||||
self.environment.block_start_string,
|
self.environment.block_start_string,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue