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:
131131 >>> GitURLWithPip(url="git+ssh://git@github.com/tony/AlgoXY.git")
132132 GitURLWithPip(url=git+ssh://git@github.com/tony/AlgoXY.git,
133133 scheme=git+ssh,
134- hostname=git@ github.com,
134+ hostname=github.com,
135135 path=tony/AlgoXY,
136+ user=git,
136137 suffix=.git,
137138 matcher=pip-url)
138139 """ # NOQA: E501
Original file line number Diff line number Diff line change 2929# We modified it to have groupings
3030SCP_REGEX = r"""
3131 # Optional user, e.g. 'git@'
32- (?P<user>( \w+))?@
32+ (( ?P<user>\w+)@)?
3333 # Server, e.g. 'github.com'.
3434 (?P<hostname>([^/:]+)):
3535 # The server-side path. e.g. 'user/project.git'. Must start with an
3939 """
4040
4141RE_PATH = r"""
42+ ((?P<user>\w+)@)?
4243 (?P<hostname>([^/:]+))
4344 (:(?P<port>\d{1,5}))?
4445 (?P<separator>[:,/])?
You can’t perform that action at this time.
0 commit comments