I have a javascript function with the line:
num = num.toString().replace(/\$|\,/g,'');
When I deploy to jboss 3.2.3 the function works as expected and view source tells me the line has not changed.
But when I deploy to JBoss 4.0.1 and view source the line changes to:
num = num.toString().replace(/$|\,/g,'');
That is the /\ is changed to /.
Does anyone know why this would be the case?
Any ideas / help would be appreciated.