Fix NaN issue in string_format.js
This commit is contained in:
parent
829ee5ae85
commit
ae02f35baa
|
@ -322,7 +322,7 @@ module.exports = function format(fmt, obj) {
|
|||
|
||||
tokens = tokenizeFormatSpec(formatSpec || '');
|
||||
|
||||
if(!isNaN(parseInt(value))) {
|
||||
if(_.isNumber(value)) {
|
||||
out += formatNumber(value, tokens);
|
||||
} else {
|
||||
out += formatString(value, tokens);
|
||||
|
|
|
@ -81,4 +81,3 @@ WhosOnlineModule.prototype.mciReady = function(mciData, cb) {
|
|||
}
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue