Fix NaN issue in string_format.js

This commit is contained in:
Bryan Ashby 2016-09-08 22:32:24 -06:00
parent 829ee5ae85
commit ae02f35baa
2 changed files with 1 additions and 2 deletions

View File

@ -322,7 +322,7 @@ module.exports = function format(fmt, obj) {
tokens = tokenizeFormatSpec(formatSpec || ''); tokens = tokenizeFormatSpec(formatSpec || '');
if(!isNaN(parseInt(value))) { if(_.isNumber(value)) {
out += formatNumber(value, tokens); out += formatNumber(value, tokens);
} else { } else {
out += formatString(value, tokens); out += formatString(value, tokens);

View File

@ -81,4 +81,3 @@ WhosOnlineModule.prototype.mciReady = function(mciData, cb) {
} }
); );
}; };