update format code

没用编辑器,所以代码没格式化/(ㄒoㄒ)/~~
This commit is contained in:
轩辕Rowboat 2017-06-20 14:53:07 +08:00 committed by Pan
parent ff8d7ada73
commit aaa64a8ccf
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ export function html2Text(val) {
export function toThousandslsFilter(num) {
return (+num || 0).toString()
.replace(/^\-?\d+/g, function(m){
.replace(/^\-?\d+/g, function (m) {
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
});
}