Skip to content

Commit c194018

Browse files
committed
Fixed number formatting in ios issue
1 parent f453159 commit c194018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Results/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default {
130130
},
131131
methods: {
132132
formatNumber(s) {
133-
return s.toFixed(0).toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ',')
133+
return parseFloat(s.toFixed(0)).toLocaleString('en')
134134
}
135135
}
136136
}

0 commit comments

Comments
 (0)