if blocks work with filtered variables

This commit is contained in:
James MacAulay
2008-10-15 17:02:26 -04:00
parent 69bc84b777
commit 282786d7e2
5 changed files with 24 additions and 5 deletions
+2 -2
View File
@@ -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+)/)