fix: updated pathmatch for gitlab · npm/hosted-git-info@e8325b5

Original file line numberDiff line numberDiff line change

@@ -25,7 +25,7 @@ var gitHosts = module.exports = {

2525

'bugstemplate': 'https://{domain}/{user}/{project}/issues',

2626

'httpstemplate': 'git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}',

2727

'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}',

28-

'pathmatch': /^[/]([^/]+)[/](?!.*\/-\/)(.+?)(?:[.]git|[/])?$/

28+

'pathmatch': /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/

2929

},

3030

gist: {

3131

'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ],