lib/liquid/block_body.rb in liquid-5.1.0 vs lib/liquid/block_body.rb in liquid-5.2.0

- old
+ new

@@ -229,11 +229,11 @@ def render_node(context, output, node) BlockBody.render_node(context, output, node) end def create_variable(token, parse_context) - token.scan(ContentOfVariable) do |content| - markup = content.first + if token =~ ContentOfVariable + markup = Regexp.last_match(1) return Variable.new(markup, parse_context) end BlockBody.raise_missing_variable_terminator(token, parse_context) end