Skip to content

Commit 44e0b79

Browse files
committed
fix(parser,git): Make suffix optional
1 parent 9bcbbec commit 44e0b79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvcs/parse/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# The server-side path. e.g. 'user/project.git'. Must start with an
3636
# alphanumeric character so as not to be confusable with a Windows paths
3737
# like 'C:/foo/bar' or 'C:\foo\bar'.
38-
(?P<path>(\w[^:]+))
38+
(?P<path>(\w[^:.]+))
3939
"""
4040

4141
RE_PATH = r"""
@@ -83,7 +83,7 @@
8383
rf"""
8484
^(?P<scheme>ssh)?
8585
{SCP_REGEX}
86-
{RE_SUFFIX}
86+
{RE_SUFFIX}?
8787
""",
8888
re.VERBOSE,
8989
),

0 commit comments

Comments
 (0)