0 Replies Latest reply on Jan 13, 2005 2:29 AM by David Bowden

    Javascript problem when upgrading to Jboss 4.0.1

    David Bowden Newbie

      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.