Remove "strict2" from bare bracket error message

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
Alok Swamy
2026-04-24 16:18:05 -04:00
co-authored by Claude Opus 4.7
parent 95ce7e7fa1
commit dfddd8f390
+1 -1
View File
@@ -55,7 +55,7 @@ module Liquid
str << variable_lookups
when :open_square
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
str = consume.dup
str << expression