Liquid has UTF8 support.

This commit is contained in:
Adam Tanner
2012-12-26 18:14:36 -08:00
parent 50bd34fd78
commit 0b36540b78
13 changed files with 50 additions and 9 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module Liquid
if match[2].match(/#{FilterSeparator}\s*(.*)/o)
filters = Regexp.last_match(1).scan(FilterParser)
filters.each do |f|
if matches = f.match(/\s*(\w+)/)
if matches = f.match(/\s*(#{WordRegex}+)/o)
filtername = matches[1]
filterargs = f.scan(/(?:#{FilterArgumentSeparator}|#{ArgumentSeparator})\s*(#{QuotedFragment})/o).flatten
@filters << [filtername.to_sym, filterargs]