mirror of
https://github.com/kemko/liquid.git
synced 2026-01-02 00:05:42 +03:00
Merge pull request #481 from Shopify/fix-nil-blank
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