Skip to content

Commit

Permalink
fix: use extended globs for hidden files filter
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Dec 7, 2020
1 parent 8713f6d commit 0519f97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/generate-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function generateComment({

let hidden = [];
if (hideFiles) {
const hideFilesPtrn = globToRegExp(hideFiles);
const hideFilesPtrn = globToRegExp(hideFiles, {extended: true});
[hidden, files] = partition(files, fileData => hideFilesPtrn.test(fileData.path));
}

Expand Down

0 comments on commit 0519f97

Please sign in to comment.