Skip to content

Commit 0f08b41

Browse files
committed
fix(parser,hg and svn): Fix port length
1 parent 88932af commit 0f08b41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libvcs/parse/hg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
RE_PATH = r"""
2929
((?P<user>.*)@)?
3030
(?P<hostname>([^/:]+))
31-
(:(?P<port>\d{1,4}))?
31+
(:(?P<port>\d{1,5}))?
3232
(?P<separator>/)?
3333
(?P<path>
3434
/?(\w[^:.]*)

libvcs/parse/svn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
RE_PATH = r"""
3030
((?P<user>.*)@)?
3131
(?P<hostname>([^/:]+))
32-
(:(?P<port>\d{1,4}))?
32+
(:(?P<port>\d{1,5}))?
3333
(?P<separator>/)?
3434
(?P<path>
3535
(\w[^:.]*)

0 commit comments

Comments
 (0)