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 88# Credit, pip (license: MIT):
99# https://github.com/pypa/pip/blob/22.1.2/src/pip/_internal/vcs/git.py#L39-L52
1010# We modified it to have groupings
11- SCP_REGEX = r"""
11+ RE_SCP = r"""
1212 # Server, e.g. 'github.com'.
1313 (?P<hostname>([^/:]+))
1414 (?P<separator>:)
Original file line number Diff line number Diff line change 2323from libvcs ._internal .dataclasses import SkipDefaultFieldsReprMixin
2424
2525from .base import Rule , RuleMap , URLProtocol
26- from .constants import RE_USER , SCP_REGEX
26+ from .constants import RE_SCP , RE_USER
2727
2828RE_PATH = r"""
2929 (?P<hostname>([^/:]+))
7070 rf"""
7171 ^(?P<scheme>ssh)?
7272 { RE_USER }
73- { SCP_REGEX }
73+ { RE_SCP }
7474 { RE_SUFFIX } ?
7575 """ ,
7676 re .VERBOSE ,
136136 rf"""
137137 { RE_PIP_SCP_SCHEME }
138138 { RE_USER }
139- { SCP_REGEX } ?
139+ { RE_SCP } ?
140140 { RE_SUFFIX } ?
141141 { RE_PIP_REV } ?
142142 """ ,
Original file line number Diff line number Diff line change 2525from libvcs .url .git import RE_PIP_REV , RE_SUFFIX
2626
2727from .base import Rule , RuleMap , URLProtocol
28- from .constants import RE_USER , SCP_REGEX
28+ from .constants import RE_SCP , RE_USER
2929
3030RE_PATH = r"""
3131 (?P<hostname>([^/:]+))
6868 rf"""
6969 ^(?P<scheme>ssh)?
7070 { RE_USER }
71- { SCP_REGEX }
71+ { RE_SCP }
7272 { RE_SUFFIX } ?
7373 """ ,
7474 re .VERBOSE ,
Original file line number Diff line number Diff line change 2626from libvcs .url .git import RE_PIP_REV
2727
2828from .base import Rule , RuleMap , URLProtocol
29- from .constants import RE_USER , SCP_REGEX
29+ from .constants import RE_SCP , RE_USER
3030
3131RE_PATH = r"""
3232 (?P<hostname>([^/:@]+))
7070 rf"""
7171 ^(?P<scheme>ssh)?
7272 { RE_USER }
73- { SCP_REGEX }
73+ { RE_SCP }
7474 { RE_PIP_REV } ?
7575 """ ,
7676 re .VERBOSE ,
You can’t perform that action at this time.
0 commit comments