Skip to content

Commit

Permalink
fix: don't filter out ./ man references
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 10, 2019
1 parent 181e36d commit b3cfd2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ function linkMans (pkg, folder, parent, gtop, opts) {
return acc
}, {})
var manpages = pkg.man.filter(function (man) {
return set[path.basename(man)] === man
const cleanMan = path.join('/', man).replace(/\\|:/g, '/').substr(1)
return set[path.basename(man)] === cleanMan
})

return BB.map(manpages, man => {
Expand Down

0 comments on commit b3cfd2e

Please sign in to comment.