Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit 44c0760

Browse files
Fix oversight with path -> package matching
1 parent 50c39e2 commit 44c0760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/snippets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const PackageNameResolver = {
116116
},
117117
find (filePath) {
118118
for (let [packagePath, name] of this.pathsToNames.entries()) {
119-
if (filePath.startsWith(packagePath)) return name
119+
if (filePath.startsWith(`${packagePath}${path.sep}`)) return name
120120
}
121121
return null
122122
}

0 commit comments

Comments
 (0)