mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
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:
parent
0dab071dba
commit
97fd57e8a0
1 changed files with 1 additions and 0 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue