Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Fixes chrisallenlane#6

Do not scan a `*.js` that is a directory.
  • Loading branch information
scottschreckengaust authored Jul 9, 2024
1 parent 96cbb11 commit bf3eb04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ glob(globify(options, signatures), config.glob, function (err, files) {

// scan each file
files.forEach(function (file) {
if (fs.lstatSync(file).isDirectory()) {
return;
}
matches = scan(file, matches, options, signatures);
});

Expand Down

0 comments on commit bf3eb04

Please sign in to comment.