Use safe_parse_expression instead of parse_expression

This commit is contained in:
Guilherme Carreiro
2025-10-27 16:33:31 +01:00
committed by Guilherme Carreiro
parent d77662cd0e
commit 4f7dafbcac
+1 -2
View File
@@ -68,8 +68,7 @@ module Liquid
raise SyntaxError, options[:locale].t("errors.syntax.cycle") if p.look(:end_of_string)
while (var = p.expression)
var = parse_expression(var)
while (var = safe_parse_expression(p))
@variables << var
break unless p.consume?(:comma)
end