From b9ff5e3565a523c29c7c6bb5b724bd4512157c57 Mon Sep 17 00:00:00 2001 From: arrowrowe Date: Sat, 24 Sep 2016 23:14:38 +0800 Subject: [PATCH] fix #12 --- lib/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/link.js b/lib/link.js index 62d9876..c2938c8 100644 --- a/lib/link.js +++ b/lib/link.js @@ -27,8 +27,8 @@ module.exports = function (report, www) { } } - // Ensure `www.substr(-1) === '/'` is constant. - www = path.resolve(www) + (www.substr(-1) === '/' ? '/' : ''); + // Ensure `www.substr(-1) === path.sep` is constant. + www = path.resolve(www) + (www.substr(-1) === path.sep ? path.sep : ''); fr(function (pkg) { pkg.output = getOutput(pkg, www);