Skip to content

Commit aaa64a8

Browse files
ruochuan12PanJiaChen
authored andcommitted
update format code
没用编辑器,所以代码没格式化/(ㄒoㄒ)/~~
1 parent ff8d7ad commit aaa64a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/filters/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function html2Text(val) {
105105

106106
export function toThousandslsFilter(num) {
107107
return (+num || 0).toString()
108-
.replace(/^\-?\d+/g, function(m){
109-
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
110-
});
108+
.replace(/^\-?\d+/g, function (m) {
109+
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
110+
});
111111
}

0 commit comments

Comments
 (0)