gulp-istanbul icon indicating copy to clipboard operation
gulp-istanbul copied to clipboard

File name will break RegExp

Open benedictchen opened this issue 5 years ago • 0 comments

https://github.com/SBoudrias/gulp-istanbul/blob/f71379a83a07c87935aa6589369a49ff12201f1b/index.js#L74

When using express-openapi, files are often in the format of {myPathVariable}.js. This format causes the regex to not work.

Please replace with this:

var covStubRE = /\{.*"path".*"fnMap".*"statementMap".*"branchMap".*\}^\/(?!\.js)/g;

benedictchen avatar Jul 05 '18 22:07 benedictchen