mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
Fix NaN issue in string_format.js
This commit is contained in:
parent
829ee5ae85
commit
ae02f35baa
2 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue