Skip to content

Commit 17e73b6

Browse files
committed
cast to string in the case of bad format
1 parent 68fe2b7 commit 17e73b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ lib.adjustFormat = function adjustFormat(formatStr) {
3131
return formatStr;
3232
};
3333

34-
lib.noFormat = function(value) { return value; };
34+
lib.noFormat = function(value) { return String(value); };
3535

3636
lib.numberFormat = function(formatStr) {
3737
try {

0 commit comments

Comments
 (0)