Skip to content

Commit e8325b5

Browse files
claudiahdzisaacs
authored andcommitted
fix: updated pathmatch for gitlab
PR-URL: #51 Credit: @mikemimik Close: #51 Reviewed-by: @isaacs
1 parent 4e4ea0f commit e8325b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-host-info.js

+1-1
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' ],

0 commit comments

Comments
 (0)