parse expressions before passing it to Liquid::Condition
This commit is contained in:
parent
191f5e5fd8
commit
dbea1ca80b
|
@ -402,9 +402,11 @@ module Jekyll
|
||||||
operator = parser.consume?(:comparison)
|
operator = parser.consume?(:comparison)
|
||||||
condition =
|
condition =
|
||||||
if operator
|
if operator
|
||||||
Liquid::Condition.new(left_expr, operator, parser.expression)
|
Liquid::Condition.new(Liquid::Expression.parse(left_expr),
|
||||||
|
operator,
|
||||||
|
Liquid::Expression.parse(parser.expression))
|
||||||
else
|
else
|
||||||
Liquid::Condition.new(left_expr)
|
Liquid::Condition.new(Liquid::Expression.parse(left_expr))
|
||||||
end
|
end
|
||||||
parser.consume(:end_of_string)
|
parser.consume(:end_of_string)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue