ACRA / acra-storage

GNU General Public License v3.0
49 stars 32 forks source link

Switch to "new RegExp" style regular expression #4

Closed josh1093 closed 10 years ago

josh1093 commented 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.

KevinGaudin commented 10 years ago

Thanks a lot, I was aware of the incompatibility but never had time to find a workaround.