I have a Javascript error that have been reported to me and unfortunately I've no idea on how to reproduce it. IE8 Developer Tools reports the following error: Unexpected quantifier. The following row produces the error:
var g=RegExp(d+"=([^|]*)").exec(j); //output from closure-compiler
I guess I have to escape properly the pipe like that (\|
) to fix the problem, but I don't know if I'm right because I don't know how to reproduce the error.
Any suggestions or solutions are welcome.
Thanks.
[UPDATE]
The values of d
are the keys of __utmz
cookie values which I'm trying to retrieve and they are listed in an array like this ["utmccn", "utmcmd", /* ... */]
. Well now there's not so much I can do, I'm at home with my friend the flu.