mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 15:30:39 -07:00
filtered variables in for loops
This commit is contained in:
@@ -42,7 +42,7 @@ module Liquid
|
||||
# forloop.last:: Returns true if the item is the last item.
|
||||
#
|
||||
class For < Block
|
||||
Syntax = /(\w+)\s+in\s+(#{VariableSignature}+)\s*(reversed)?/
|
||||
Syntax = /(\w+)\s+in\s+(#{Expression}+)\s*(reversed)?/
|
||||
|
||||
def initialize(tag_name, markup, tokens)
|
||||
if markup =~ Syntax
|
||||
|
||||
Reference in New Issue
Block a user