Commit a3601e84 authored by youjie's avatar youjie

no message

parent a6c93dd8
......@@ -130,8 +130,12 @@
const [significand, exp] = formatted.split('e');
return significand + '0'.repeat(parseInt(exp)) + units[unitIndex + 1];
}
if(formatted.substring(3,4)==',') return formatted.substring(0,3) + units[unitIndex + 1];
return formatted.substring(0,4) + units[unitIndex + 1];
const cleanedInteger = formatted.replace(/0+$/, '')
let money = cleanedInteger.split(',')
if(money.length>1){
return money[0] + units[unitIndex + 1]
}
return money + units[unitIndex + 1];
},
login(name) {
if ((name && name.nickname == "") || !name || !name.nickname) {
......
......@@ -117,8 +117,12 @@
const [significand, exp] = formatted.split('e');
return significand + '0'.repeat(parseInt(exp)) + units[unitIndex + 1];
}
if(formatted.substring(3,4)==',') return formatted.substring(0,3) + units[unitIndex + 1];
return formatted.substring(0,4) + units[unitIndex + 1];
const cleanedInteger = formatted.replace(/0+$/, '')
let money = cleanedInteger.split(',')
if(money.length>1){
return money[0] + units[unitIndex + 1]
}
return money + units[unitIndex + 1];
},
login(name) {
if ((name && name.nickname == "") || !name || !name.nickname) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment