Skip to content
Snippets Groups Projects
Commit aaa64a8c authored by 轩辕Rowboat's avatar 轩辕Rowboat Committed by Pan
Browse files

update format code

没用编辑器,所以代码没格式化/(ㄒoㄒ)/~~
parent ff8d7ada
No related branches found
No related tags found
No related merge requests found
......@@ -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, ',');
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment