mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
if blocks work with filtered variables
This commit is contained in:
@@ -19,8 +19,8 @@ module Liquid
|
||||
@filters = []
|
||||
if match = markup.match(/\s*(#{QuotedFragment})/)
|
||||
@name = match[1]
|
||||
if markup.match(/#{FilterSperator}\s*(.*)/)
|
||||
filters = Regexp.last_match(1).split(/#{FilterSperator}/)
|
||||
if markup.match(/#{FilterSeparator}\s*(.*)/)
|
||||
filters = Regexp.last_match(1).split(/#{FilterSeparator}/)
|
||||
|
||||
filters.each do |f|
|
||||
if matches = f.match(/\s*(\w+)/)
|
||||
|
||||
Reference in New Issue
Block a user