Locales separating decimals with commas

Added regex for locales separating decimals with commas, not periods
This commit is contained in:
Francesco Ferraro authored and GitHub committed 2021-11-28 23:01:42 +01:00
1 parent d8bd7d31a6
commit 2852449aa9
1 file changed
+1 -1
@@ -150,7 +150,7 @@ function numberFormat(numberState) {
maximumFractionDigits: 1
});
return formatter.format(roundDown(numberState)).replace('.0', '');
return formatter.format(roundDown(numberState)).replace(/.0|,0/gi, '');
}
function setEventListeners(evt) {