lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.9.3 vs lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.9.4
- old
+ new
@@ -77,10 +77,10 @@
tail = match[3]
while true
braces = code.gsub(%r/[^{}]+/, '')
len = braces.size
if len % 2 != 0
- nest = tail.match %r/^(.*\})(.*)$/
+ nest = tail.match %r/^(.*?\})(.*)$/
if nest
code += nest[1]
tail = nest[2]
else
abort! "Mismatched {}'s"