mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-22 08:38:35 +02:00
frontend: drop daisy-ui, improve linting
This commit is contained in:
@@ -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'), '')
|
||||
|
||||
Reference in New Issue
Block a user