parent
ff8d7ada73
commit
aaa64a8ccf
|
@ -105,7 +105,7 @@ export function html2Text(val) {
|
|||
|
||||
export function toThousandslsFilter(num) {
|
||||
return (+num || 0).toString()
|
||||
.replace(/^\-?\d+/g, function(m){
|
||||
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
|
||||
});
|
||||
.replace(/^\-?\d+/g, function (m) {
|
||||
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue