Skip to content

Commit

Permalink
Close #166 PR: Fix issue with CLI throwing on Windows - fixes #164.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored and sindresorhus committed Nov 8, 2015
1 parent fcc7a6e commit 560c6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function prefixTitle(file) {
.replace(/test\-/g, '')
.replace(/\.js$/, '')
.replace(base, '')
.replace(new RegExp(path.sep, 'g'), separator);
.split(path.sep).join(separator);

if (prefix.length > 0) {
prefix += separator;
Expand Down

0 comments on commit 560c6f8

Please sign in to comment.