Skip to content

Commit

Permalink
fix: fix triple dot replacement error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
richrdkng committed Mar 28, 2020
1 parent 38bf73f commit b251432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/internal/processPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ module.exports = function processPath (root, dirs, paths) {
}
})

return path.normalize(replaceTripleDots(joinedPath))
return replaceTripleDots(joinedPath)
}
2 changes: 1 addition & 1 deletion src/internal/replaceTripleDots.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
const path = require('path')

module.exports = function replaceTripleDots (pathString) {
return pathString.replace(/\*\*\*$/, `**${path.sep}*`)
return path.normalize(pathString.replace(/\*\*\*$/, `**${path.sep}*`))
}

0 comments on commit b251432

Please sign in to comment.