osrec/currencyFormatter.js

Invalid character in IE10 - line 1275 character 49

Closed this issue · 1 comments

return Math.abs(Number(str.replace(new RegExp(`[^0-9${decimal}]`, 'g'), '').replace(decimal, '.'))) * mult;

I get Invalid character - line 1275 character 49 in IE10

osrec commented

Please use the version in the dist/ folder. The version you're using contains template literals, which IE does not support, therefore you need the transpiled version from the dist/ folder.