Skip to content

Commit

Permalink
Revert "fix(findFiles): Fix the discovery of files when a directory o…
Browse files Browse the repository at this point in the history
…f partial name match occurs"

This reverts commit 2e5d8ed.
  • Loading branch information
EntraptaJ committed May 12, 2020
1 parent fa25197 commit f51c084
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/findFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ async function findFile(
const directoryFileName = directoryEntry.name;

if (directoryEntry.name.includes(fileName)) {
if (directoryEntry.name === fileName && directoryEntry.isDirectory()) {
return true;
}
if (directoryEntry.isDirectory()) return true;

for (let extension of [...extensions, ...JS_EXTS]) {
if (directoryFileName === fileName + extension) {
Expand Down

0 comments on commit f51c084

Please sign in to comment.