mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07: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