mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Fail with trailing elements in the cycle tag
This commit is contained in:
committed by
Guilherme Carreiro
parent
327790cdce
commit
e2a15334f0
@@ -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}/)
|
||||
|
||||
Reference in New Issue
Block a user