Merge pull request #481 from Shopify/fix-nil-blank

Coerce regex @blank output to a boolean
This commit is contained in:
Justin Li
2014-11-06 13:03:15 -05:00

View File

@@ -43,7 +43,7 @@ module Liquid
@blank = false
else
@nodelist << token
@blank &&= (token =~ /\A\s*\z/)
@blank &&= !!(token =~ /\A\s*\z/)
end
end
rescue SyntaxError => e