mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Coerce regex @blank output to a boolean
This commit is contained in:
@@ -43,7 +43,7 @@ module Liquid
|
|||||||
@blank = false
|
@blank = false
|
||||||
else
|
else
|
||||||
@nodelist << token
|
@nodelist << token
|
||||||
@blank &&= (token =~ /\A\s*\z/)
|
@blank &&= !!(token =~ /\A\s*\z/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue SyntaxError => e
|
rescue SyntaxError => e
|
||||||
|
|||||||
Reference in New Issue
Block a user