diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-14 12:25:35 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-14 12:25:35 -0500 |
commit | cb22ee5681b1eb1f89ee675651c018b77dd1524d (patch) | |
tree | 6e0090585ce47b53fad8a3428179a02a721eda66 /lib/handlebars/utils.js | |
parent | 9ab31e1fc6c94e5c13f9e6a10e23b1c1ed79c504 (diff) | |
download | handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.zip handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.gz handlebars.js-cb22ee5681b1eb1f89ee675651c018b77dd1524d.tar.bz2 |
Increase test coverage a touch
Diffstat (limited to 'lib/handlebars/utils.js')
-rw-r--r-- | lib/handlebars/utils.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/handlebars/utils.js b/lib/handlebars/utils.js index f2f1a54..087183e 100644 --- a/lib/handlebars/utils.js +++ b/lib/handlebars/utils.js @@ -14,7 +14,7 @@ var badChars = /[&<>"'`]/g; var possible = /[&<>"'`]/; function escapeChar(chr) { - return escape[chr] || "&"; + return escape[chr]; } export function extend(obj /* , ...source */) { @@ -37,6 +37,7 @@ var isFunction = function(value) { return typeof value === 'function'; }; // fallback for older versions of Chrome and Safari +/* istanbul ignore next */ if (isFunction(/x/)) { isFunction = function(value) { return typeof value === 'function' && toString.call(value) === '[object Function]'; @@ -44,6 +45,7 @@ if (isFunction(/x/)) { } export var isFunction; +/* istanbul ignore next */ export var isArray = Array.isArray || function(value) { return (value && typeof value === 'object') ? toString.call(value) === '[object Array]' : false; }; |