Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

Commit b3a87cf

Browse files
committed
This fixes scenarios when the data has falsy values like 0,false etc. Earlier it would just skip this value.
1 parent 96c33a5 commit b3a87cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tmpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"'" : "'"
6767
};
6868
tmpl.encode = function (s) {
69-
return String(s || "").replace(
69+
return String(s + "" || "").replace(
7070
tmpl.encReg,
7171
function (c) {
7272
return tmpl.encMap[c] || "";

0 commit comments

Comments
 (0)