mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 09:05:13 -07:00
fix(case): use Condition.parse_expression for empty/blank handling
Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
18f1e8a61e
commit
1b420ab6d8
@@ -99,7 +99,7 @@ module Liquid
|
|||||||
parser = @parse_context.new_parser(markup)
|
parser = @parse_context.new_parser(markup)
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
expr = parser.expression
|
expr = Condition.parse_expression(parser)
|
||||||
block = Condition.new(@left, '==', expr)
|
block = Condition.new(@left, '==', expr)
|
||||||
block.attach(body)
|
block.attach(body)
|
||||||
@blocks << block
|
@blocks << block
|
||||||
|
|||||||
Reference in New Issue
Block a user