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)
|
||||
condition =
|
||||
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
|
||||
Liquid::Condition.new(left_expr)
|
||||
Liquid::Condition.new(Liquid::Expression.parse(left_expr))
|
||||
end
|
||||
parser.consume(:end_of_string)
|
||||
|
||||
|
|
Loading…
Reference in New Issue