https://whereswalden.com/2011/03/06/javascript-change-in-firefox-5-not-4-and-in-other-browsers-regular-expressions-cant-be-called-like-functions/
https://bugs.webkit.org/show_bug.cgi?id=28285

Not sure how to translate the webkit bug into browser versions.