gulp-istanbul
gulp-istanbul copied to clipboard
File name will break RegExp
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;