Skip to content

Commit 164a617

Browse files
committed
removed buggy regexp option from instrument filter
1 parent b53a7ee commit 164a617

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/coverage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ exports.instrument = function(options) {
5959
files = Array.isArray(files) ? files : [files];
6060
return files.some(function(f) {
6161
if (typeof f === 'string') return file.indexOf(f) === 0;
62-
else if (f instanceof RegExp) return f.test(file);
6362
else throw new Error("invalid entry in options.coverage.files: " + typeof f);
6463
});
6564
} else {

0 commit comments

Comments
 (0)