Skip to content

Commit 337c8e8

Browse files
committed
fixed patch with wrong count of args
1 parent 3af1213 commit 337c8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

no.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
((i + mod) % 2 ? args : template).push(arguments[i]);
2626
i++;
2727
}
28-
if ((i + mod) % 2) template.push('');
28+
if (template.length < args.length) template.push('');
2929
var key = template.join(uid);
3030
if (key in templates) {
3131
args[0] = templates[key];

0 commit comments

Comments
 (0)