diff --git a/lib/cli/lookup-files.js b/lib/cli/lookup-files.js index 8c5c9f3fe7..81e9c261e3 100644 --- a/lib/cli/lookup-files.js +++ b/lib/cli/lookup-files.js @@ -46,7 +46,7 @@ function isHiddenOnUnix(pathname) { */ function hasMatchingExtname(pathname, exts) { return exts.some(function(element) { - return pathname.endsWith(element); + return pathname.endsWith('.' + element); }); }