mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Merge pull request #2077 from Shopify/remove-strict2-from-error-message
Remove "strict2" from bare bracket error message
This commit is contained in:
@@ -55,7 +55,7 @@ module Liquid
|
|||||||
str << variable_lookups
|
str << variable_lookups
|
||||||
when :open_square
|
when :open_square
|
||||||
if @reject_bare_brackets
|
if @reject_bare_brackets
|
||||||
raise SyntaxError, "Bare bracket access is not allowed in strict2 mode. Use #{Expression::SELF}['...'] instead"
|
raise SyntaxError, "Bare bracket access is not allowed. Use #{Expression::SELF}['...'] instead"
|
||||||
end
|
end
|
||||||
str = consume.dup
|
str = consume.dup
|
||||||
str << expression
|
str << expression
|
||||||
|
|||||||
Reference in New Issue
Block a user