1
0
Fork 0

Use correct minus sign in numbers

This commit is contained in:
Gregory Eremin 2015-03-18 16:26:14 +07:00
parent 52d2054a68
commit d88933eed9
1 changed files with 1 additions and 1 deletions

View File

@ -25,5 +25,5 @@ function formatNumber(num) {
while (/(\d+)(\d{3})/.test(x1)) {
x1 = x1.replace(/(\d+)(\d{3})/, '$1,$2');
}
return x1 + x2;
return (x1 + x2).replace('-', '');
}