I have this piece of JavaScript code
price = price.replace(/(.*)\\./, x => x.replace(/\\./g,\'\') + \'.\')
This works fine in Firefox an
Internet explorer doesn't support arrow functions yet. You can check the browsers supporting arrow functions here.
The method to solve it would be to make a good old regular callback function :
price = price.replace(/(.*)\./, function (x) {
x.replace(/\./g,'') + '.';
}
This would work in every browser.