You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python Liquid supports ored when tag expressions by virtue of treating every when tag sub-expression as a complete boolean expression. This is not consistent with Ruby Liquid.
In general, Ruby Liquid will accept any conditional expression any int, float, range, literal or variable within a when tag "list", the result of which is compared to the case object. Handling of tokens that don't fall in to that list of expressions is "lax", meaning it is a little "fuzzy". If a when sub-expression (after splitting on or and ,) starts with invalid tokens, it is silently ignored. If a sub-expression starts with a valid int, float, range, literal or variable, trailing tokens will be silently ignored.
Also, Python Liquid's naive approach to splitting when expressions on , fails when a comma appears in a string literal.
The text was updated successfully, but these errors were encountered:
Python Liquid supports
or
edwhen
tag expressions by virtue of treating everywhen
tag sub-expression as a complete boolean expression. This is not consistent with Ruby Liquid.In general, Ruby Liquid will accept
any conditional expressionany int, float, range, literal or variable within awhen
tag "list", the result of which is compared to thecase
object. Handling of tokens that don't fall in to that list of expressions is "lax", meaning it is a little "fuzzy". If awhen
sub-expression (after splitting onor
and,
) starts with invalid tokens, it is silently ignored. If a sub-expression starts with a valid int, float, range, literal or variable, trailing tokens will be silently ignored.Also, Python Liquid's naive approach to splitting
when
expressions on,
fails when a comma appears in a string literal.The text was updated successfully, but these errors were encountered: