frontend: drop daisy-ui, improve linting

This commit is contained in:
Herculino Trotta
2024-11-17 22:31:13 -03:00
parent b504d7fdcb
commit ea480c5954
5 changed files with 49 additions and 23 deletions

View File

@@ -21,8 +21,8 @@ window.unpaidSound = popAudio;
* @param {string} locale - [optional] the locale that the number is represented in. Omit this parameter to use the current locale.
*/
window.parseLocaleNumber = function parseLocaleNumber(stringNumber, locale) {
let thousandSeparator = Intl.NumberFormat(locale).format(11111).replace(/\p{Number}/gu, '');
let decimalSeparator = Intl.NumberFormat(locale).format(1.1).replace(/\p{Number}/gu, '');
let thousandSeparator = Intl.NumberFormat(locale).format(11111).replace(/\d/g, '');
let decimalSeparator = Intl.NumberFormat(locale).format(1.1).replace(/\d/g, '');
return parseFloat(stringNumber
.replace(new RegExp('\\' + thousandSeparator, 'g'), '')