File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,9 @@ def register(self, cls: Matcher) -> None:
131
131
>>> GitURLWithPip(url="git+ssh://git@github.com/tony/AlgoXY.git")
132
132
GitURLWithPip(url=git+ssh://git@github.com/tony/AlgoXY.git,
133
133
scheme=git+ssh,
134
- hostname=git@ github.com,
134
+ hostname=github.com,
135
135
path=tony/AlgoXY,
136
+ user=git,
136
137
suffix=.git,
137
138
matcher=pip-url)
138
139
""" # NOQA: E501
Original file line number Diff line number Diff line change 29
29
# We modified it to have groupings
30
30
SCP_REGEX = r"""
31
31
# Optional user, e.g. 'git@'
32
- (?P<user>( \w+))?@
32
+ (( ?P<user>\w+)@)?
33
33
# Server, e.g. 'github.com'.
34
34
(?P<hostname>([^/:]+)):
35
35
# The server-side path. e.g. 'user/project.git'. Must start with an
39
39
"""
40
40
41
41
RE_PATH = r"""
42
+ ((?P<user>\w+)@)?
42
43
(?P<hostname>([^/:]+))
43
44
(:(?P<port>\d{1,5}))?
44
45
(?P<separator>[:,/])?
You can’t perform that action at this time.
0 commit comments