Fixed javascript replaceAll issue for ES12- browser
This commit is contained in:
parent
3d3fbda128
commit
297ee6eba0
|
|
@ -425,7 +425,9 @@ export default {
|
|||
}
|
||||
|
||||
// 198.4
|
||||
money = money.replace(this.currency.symbol, '').replaceAll(this.currency.thousands_separator, '').replace(this.currency.decimal_mark, '.');
|
||||
let regex = new RegExp(this.currency.thousands_separator, 'gi');
|
||||
|
||||
money = money.replace(this.currency.symbol, '').replace(regex, '').replace(this.currency.decimal_mark, '.');
|
||||
|
||||
// "198.40"
|
||||
money = parseFloat(money).toFixed(this.currency.precision);
|
||||
|
|
|
|||
Loading…
Reference in New Issue