Skip to content

Commit 560c6f8

Browse files
TrySoundsindresorhus
authored andcommitted
Close #166 PR: Fix issue with CLI throwing on Windows - fixes #164.
1 parent fcc7a6e commit 560c6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function prefixTitle(file) {
6767
.replace(/test\-/g, '')
6868
.replace(/\.js$/, '')
6969
.replace(base, '')
70-
.replace(new RegExp(path.sep, 'g'), separator);
70+
.split(path.sep).join(separator);
7171

7272
if (prefix.length > 0) {
7373
prefix += separator;

0 commit comments

Comments
 (0)