Fixed Interpreter.boolarg incorrectly checking strings
This commit is contained in:
parent
68bbfc962a
commit
2bc7a4afc0
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ Interpreter.prototype.boolarg = function(block, index) {
|
|||
if (typeof arg === 'boolean') {
|
||||
return arg;
|
||||
} else if (typeof arg === 'string') {
|
||||
return arg === '' || arg === '0' || arg.toLowerCase() === 'false';
|
||||
return !(arg === '' || arg === '0' || arg.toLowerCase() === 'false');
|
||||
}
|
||||
return arg;
|
||||
}
|
||||
|
|
Reference in a new issue