Skip to content

Commit

Permalink
Update parsetree.py removed "?" from for x in re.compile(r"(\${.+})" …
Browse files Browse the repository at this point in the history
…which was preventing a dict from being consumed as an expression in ${}
  • Loading branch information
jjgalvez committed May 7, 2024
1 parent af80cbd commit 9d06ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mako/parsetree.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _parse_attributes(self, expressions, nonexpressions):
for key in self.attributes:
if key in expressions:
expr = []
for x in re.compile(r"(\${.+?})", re.S).split(
for x in re.compile(r"(\${.+})", re.S).split(
self.attributes[key]
):
m = re.compile(r"^\${(.+?)}$", re.S).match(x)
Expand Down

0 comments on commit 9d06ab0

Please sign in to comment.