Merge pull request #2077 from Shopify/remove-strict2-from-error-message

Remove "strict2" from bare bracket error message
This commit is contained in:
Alok Swamy
2026-04-24 16:21:51 -04:00
committed by GitHub
+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