Skip to content

Commit 6eb3a14

Browse files
author
Sebastian McKenzie
committed
remove path separators when humanising module location in kpm check
1 parent c7172ca commit 6eb3a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/commands/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function run(
8282
let res = await install.linker.initCopyModules(rawPatterns);
8383
for (let [loc] of res) {
8484
let human = path.relative(path.join(process.cwd(), "node_modules"), loc);
85-
human = human.replace(/node_modules/g, " > ");
85+
human = human.replace(new RegExp(`${path.sep}node_modules${path.sep}`, "g"), " > ");
8686

8787
if (!(await fs.exists(loc))) {
8888
reporter.error(`Module not installed: ${human}`);

0 commit comments

Comments
 (0)