Skip to content

Commit 059f30f

Browse files
committed
fix: use dots as thousands separator
1 parent 3e08af4 commit 059f30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const setupNunjucksFilters = function(app: Express): void {
1515

1616
// Add formatting for numbers to thousands separator
1717
nunjucksEnv.addFilter('thousands', (num: number | string) => {
18-
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
18+
return num.toString().replace(/\./, ',').replace(/\B(?=(\d{3})+(?!\d))/g, '.');
1919
});
2020

2121
// Add formatting filter for seconds to hh:mm format

0 commit comments

Comments
 (0)