Coerce regex @blank output to a boolean

This commit is contained in:
Justin Li
2014-11-05 20:44:06 -05:00
parent 2e42c7be1f
commit e5fd4d929f

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