fix(gitbrowse): add support for GitHub Enterprise Cloud repo url (#1089)

The extra % before - is needed in Lua. Without this rule, `<leader>gB`
would just open empty browser.

## Description

Support repo url in format:
`org-123456@github.com:repo-group/repo-name.git`
This commit is contained in:
Ondrej Brablc 2025-02-11 19:53:36 +01:00 committed by GitHub
parent 0dab071dba
commit 97fd57e8a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,7 @@ local defaults = {
{ "^git@(.+):(.+)%.git$" , "https://%1/%2" },
{ "^git@(.+):(.+)$" , "https://%1/%2" },
{ "^git@(.+)/(.+)$" , "https://%1/%2" },
{ "^org%-%d+@(.+):(.+)%.git$" , "https://%1/%2" },
{ "^ssh://git@(.*)$" , "https://%1" },
{ "^ssh://([^:/]+)(:%d+)/(.*)$" , "https://%1/%3" },
{ "^ssh://([^/]+)/(.*)$" , "https://%1/%2" },