| line |
true |
false |
branch |
|
16
|
2 |
8 |
if ($url =~ m[^https://
(?:[^\@]+@)? # optional user:token@
github\.com/
([\w.-]+) # username
/([\w.-]+?) # repo
(?:\.git)?$
]x) { } |
|
|
2 |
6 |
elsif ($url =~ m[^git@
(github\.com|gh[-\w]+) # host: github.com or gh-alias
:
([\w.-]+) # username
/([\w.-]+?) # repo
(?:\.git)?$
]x) { } |
|
40
|
2 |
4 |
if ($url =~ m[^https://
(?:[^\@]+@)? # optional user:token@
gitlab\.com/
((?:[\w.-]+/)+) # group path (at least one level, trailing slash)
([\w.-]+?) # repo
(?:\.git)?$
]x) { } |
|
|
2 |
2 |
elsif ($url =~ m[^git@
(gitlab\.com|gl[-\w]+) # host: gitlab.com or gl-alias
:
((?:[\w.-]+/)+) # group path with trailing slash
([\w.-]+?) # repo
(?:\.git)?$
]x) { } |