mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Remove "strict2" from bare bracket error message
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
95ce7e7fa1
commit
dfddd8f390
@@ -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