Locales separating decimals with commas

Add regex for locales separating decimals with commas, and not periods
This commit is contained in:
Francesco Ferraro authored and GitHub committed 2021-11-28 22:59:51 +01:00
1 parent 4764c3ed12
commit e51ba3999b
1 file changed
+1 -1
@@ -209,7 +209,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) {