Skip to content

Commit

Permalink
Merge pull request #888 from geek/traverse_path
Browse files Browse the repository at this point in the history
Compare coverage pattern to canonical path
  • Loading branch information
geek committed Nov 12, 2018
2 parents 1d6b19c + 5cd3642 commit edc19f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/coverage.js
Expand Up @@ -406,7 +406,7 @@ internals.traverse = function (coveragePath, options) {

if (stat.isFile() &&
basename[0] !== '.' &&
options.coveragePattern.test(nextPath)) {
options.coveragePattern.test(nextPath.replace(/\\/g, '/'))) {

files.push(nextPath);
}
Expand Down

0 comments on commit edc19f1

Please sign in to comment.