Skip to content

Commit 1b420ab

Browse files
charlespwdclaude
andcommitted
fix(case): use Condition.parse_expression for empty/blank handling
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 18f1e8a commit 1b420ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/liquid/tags/case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def parse_when(markup, body)
9999
parser = @parse_context.new_parser(markup)
100100

101101
loop do
102-
expr = parser.expression
102+
expr = Condition.parse_expression(parser)
103103
block = Condition.new(@left, '==', expr)
104104
block.attach(body)
105105
@blocks << block

0 commit comments

Comments
 (0)