Skip to content

Commit

Permalink
ensure an extension is being matched
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanstephens committed Sep 11, 2020
1 parent 914448f commit 41ec48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/lookup-files.js
Expand Up @@ -46,7 +46,7 @@ function isHiddenOnUnix(pathname) {
*/
function hasMatchingExtname(pathname, exts) {
return exts.some(function(element) {
return pathname.endsWith(element);
return pathname.endsWith('.' + element);
});
}

Expand Down

0 comments on commit 41ec48d

Please sign in to comment.