escapeExpressions should return "" for falsy values
This commit is contained in:
@@ -31,8 +31,8 @@ Handlebars.SafeString.prototype.toString = function() {
|
||||
// don't escape SafeStrings, since they're already safe
|
||||
if (string instanceof Handlebars.SafeString) {
|
||||
return string.toString();
|
||||
} else if (string === null) {
|
||||
string = "";
|
||||
} else if (string == null || string === false) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if(!possible.test(string)) { return string; }
|
||||
|
||||
Reference in New Issue
Block a user