tweak spelling mistake

This commit is contained in:
Pan
2018-09-03 15:03:00 +08:00
parent 2fb26525fa
commit 2938e33d0e
19 changed files with 37 additions and 38 deletions

View File

@@ -37,6 +37,6 @@ export function numberFormatter(num, digits) {
return num.toString()
}
export function toThousandslsFilter(num) {
export function toThousandFilter(num) {
return (+num || 0).toString().replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ','))
}