From dfddd8f390038402fbf5ddf133eaf81375a7ab1a Mon Sep 17 00:00:00 2001 From: Alok Swamy Date: Fri, 24 Apr 2026 16:18:05 -0400 Subject: [PATCH] Remove "strict2" from bare bracket error message Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/liquid/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid/parser.rb b/lib/liquid/parser.rb index c2e2c5d28..7a2136052 100644 --- a/lib/liquid/parser.rb +++ b/lib/liquid/parser.rb @@ -55,7 +55,7 @@ def expression 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