mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Coerce regex @blank output to a boolean
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user