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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy