From ffe056fbad08177bf9299176e5ef6d2bcd4a18a8 Mon Sep 17 00:00:00 2001 From: Michael Perrotte Date: Fri, 27 Sep 2019 18:29:46 -0400 Subject: [PATCH] fix: updated pathmatch for gitlab --- git-host-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-host-info.js b/git-host-info.js index d81be20..4dec801 100644 --- a/git-host-info.js +++ b/git-host-info.js @@ -25,7 +25,7 @@ var gitHosts = module.exports = { 'bugstemplate': 'https://{domain}/{user}/{project}/issues', 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}', 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}', - 'pathmatch': /^[/]([^/]+)[/](.+?)(?:[.]git|[/])?$/ + 'pathmatch': /^[/]([^/]+)[/](?!.*\/-\/)(.+?)(?:[.]git|[/])?$/ }, gist: { 'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ],