Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent from RangeError exceptions on large data
On io.js 2.2.1 and 2.3.1 (by the time of writing it's the latest) I have this error: ``` RangeError: Maximum call stack size exceeded at String.match (native) ``` It happens only on the second pass while karma is working (auto watching and reruns the specs). For more details read this issue: nodejs/node#759 Similar issues: thlorenz/convert-source-map#10 thlorenz/convert-source-map#11 Looks like this related to optimizations in V8 regex engine: http://blog.chromium.org/2009/02/irregexp-google-chromes-new-regexp.html Simply changing from `.+` to `..*` equivalent rule fixes an issue with match function.
- Loading branch information