Skip to content

Commit

Permalink
Merge pull request #50 from yhatt/path-sep
Browse files Browse the repository at this point in the history
  • Loading branch information
obahareth authored Jul 30, 2020
2 parents e5be4a0 + b68788b commit aa3ad1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ModulesChecker {
}

const getLeafFolderName = (fullPath: string): string => {
const needle = 'node_modules/'
const needle = 'node_modules' + path.sep
const indexOfLastSlash = fullPath.lastIndexOf(needle)
return fullPath.substr(indexOfLastSlash + needle.length)
}
Expand Down

0 comments on commit aa3ad1c

Please sign in to comment.