From b3cfd2ec3a6c398afafaeddf4d4dac0094a36839 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 9 Dec 2019 16:28:47 -0800 Subject: [PATCH] fix: don't filter out ./ man references --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 15d0573..eda6abd 100644 --- a/index.js +++ b/index.js @@ -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 => {