Closed josh1093 closed 10 years ago
On older versions of SpiderMonkey (I think our server was running 1.8.0) calling exec() on a RegExp object created like this
var repexp=/exp/;
throws an error. If instead your create your object like this
var repexp=new RegExp("exp");
exec() works fine.
Thanks a lot, I was aware of the incompatibility but never had time to find a workaround.
On older versions of SpiderMonkey (I think our server was running 1.8.0) calling exec() on a RegExp object created like this
throws an error. If instead your create your object like this
exec() works fine.