Fail with trailing elements in the cycle tag

This commit is contained in:
Guilherme Carreiro
2025-10-27 16:33:31 +01:00
committed by Guilherme Carreiro
parent 327790cdce
commit e2a15334f0
2 changed files with 38 additions and 0 deletions
+2
View File
@@ -74,6 +74,8 @@ module Liquid
break unless p.consume?(:comma)
end
p.consume(:end_of_string)
unless @is_named
@name = @variables.to_s
@is_named = !@name.match?(/\w+:0x\h{8}/)