We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d4e2e1 commit fddd9dbCopy full SHA for fddd9db
app/pages/index.vue
@@ -130,7 +130,8 @@ function formatArea(polygons: any) {
130
return area >= 100_000_000_000
131
? (area / 1000_000_000_000).toFixed(2) + ' million km²'
132
: area / 1000_000 > 1000
133
- ? (area / 1000_000).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, '.')
+ ? (area / 1000_000).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, '.') +
134
+ ' km²'
135
: (area / 1000_000).toFixed(0) + ' km²'
136
}
137
</script>
0 commit comments