From 761573a8653109cfe1df9a9015cc77dde5a1ceb9 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 1 Jun 2018 09:55:43 +0200 Subject: [PATCH] fix: massage www out of npm repository url --- lib/datasource/npm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/datasource/npm.js b/lib/datasource/npm.js index 31a956dae1..27ac1b83d7 100644 --- a/lib/datasource/npm.js +++ b/lib/datasource/npm.js @@ -155,7 +155,11 @@ async function getDependency(name, retries = 5) { `gist.${parsedEndpoint.hostname}` ); } - + // Massage www out of github URL + res.repository.url = res.repository.url.replace( + 'www.github.com', + 'github.com' + ); repositoryUrl = parse(res.repository.url, { extraBaseUrls }); } if (!repositoryUrl) { -- GitLab