File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 8
8
# Credit, pip (license: MIT):
9
9
# https://github.com/pypa/pip/blob/22.1.2/src/pip/_internal/vcs/git.py#L39-L52
10
10
# We modified it to have groupings
11
- SCP_REGEX = r"""
11
+ RE_SCP = r"""
12
12
# Server, e.g. 'github.com'.
13
13
(?P<hostname>([^/:]+))
14
14
(?P<separator>:)
Original file line number Diff line number Diff line change 23
23
from libvcs ._internal .dataclasses import SkipDefaultFieldsReprMixin
24
24
25
25
from .base import Rule , RuleMap , URLProtocol
26
- from .constants import RE_USER , SCP_REGEX
26
+ from .constants import RE_SCP , RE_USER
27
27
28
28
RE_PATH = r"""
29
29
(?P<hostname>([^/:]+))
70
70
rf"""
71
71
^(?P<scheme>ssh)?
72
72
{ RE_USER }
73
- { SCP_REGEX }
73
+ { RE_SCP }
74
74
{ RE_SUFFIX } ?
75
75
""&quo
10000
t; ,
76
76
re .VERBOSE ,
136
136
rf"""
137
137
{ RE_PIP_SCP_SCHEME }
138
138
{ RE_USER }
139
- { SCP_REGEX } ?
139
+ { RE_SCP } ?
140
140
{ RE_SUFFIX } ?
141
141
{ RE_PIP_REV } ?
142
142
""" ,
Original file line number Diff line number Diff line change 25
25
from libvcs .url .git import RE_PIP_REV , RE_SUFFIX
26
26
27
27
from .base import Rule , RuleMap , URLProtocol
28
- from .constants import RE_USER , SCP_REGEX
28
+ from .constants import RE_SCP , RE_USER
29
29
30
30
RE_PATH = r"""
31
31
(?P<hostname>([^/:]+))
68
68
rf"""
69
69
^(?P<scheme>ssh)?
70
70
{ RE_USER }
71
- { SCP_REGEX }
71
+ { RE_SCP }
72
72
{ RE_SUFFIX } ?
73
73
""" ,
74
74
re .VERBOSE ,
Original file line number Diff line number Diff line change 26
26
from libvcs .url .git import RE_PIP_REV
27
27
28
28
from .base import Rule , RuleMap , URLProtocol
29
- from .constants import RE_USER , SCP_REGEX
29
+ from .constants import RE_SCP , RE_USER
30
30
31
31
RE_PATH = r"""
32
32
(?P<hostname>([^/:@]+))
70
70
rf"""
71
71
^(?P<scheme>ssh)?
72
72
{ RE_USER }
73
- { SCP_REGEX }
73
+ { RE_SCP }
74
74
{ RE_PIP_REV } ?
75
75
""" ,
76
76
re .VERBOSE ,
You can’t perform that action at this time.
0 commit comments