We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dff829e commit 18f1e8aCopy full SHA for 18f1e8a
lib/liquid/context.rb
@@ -175,7 +175,8 @@ def []=(key, value)
175
# Example:
176
# products == empty #=> products.empty?
177
def [](expression)
178
- evaluate(Expression.parse(expression, @string_scanner))
+ @string_scanner.string = expression
179
+ evaluate(Parser.new(@string_scanner).expression)
180
end
181
182
def key?(key)
0 commit comments