Allow newlines in tags and variables.

This commit is contained in:
Dylan Thacker-Smith
2014-03-20 17:27:03 -04:00
parent face33a137
commit 3b14e27f55
11 changed files with 22 additions and 13 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ module Liquid
def lax_parse(markup)
@filters = []
if match = markup.match(/\s*(#{QuotedFragment})(.*)/o)
if match = markup.match(/\s*(#{QuotedFragment})(.*)/om)
@name = match[1]
if match[2].match(/#{FilterSeparator}\s*(.*)/o)
if match[2].match(/#{FilterSeparator}\s*(.*)/om)
filters = Regexp.last_match(1).scan(FilterParser)
filters.each do |f|
if matches = f.match(/\s*(\w+)/)