Skip to content

Commit 4680b52

Browse files
committed
fix(parse,hg,svn): Improve matching of user
1 parent 4652564 commit 4680b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvcs/parse/hg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from .base import Matcher, MatcherRegistry, URLProtocol
2727

2828
RE_PATH = r"""
29-
((?P<user>.*)@)?
30-
(?P<hostname>([^/:]+))
29+
((?P<user>\w+)@)?
30+
(?P<hostname>([^/:@]+))
3131
(:(?P<port>\d{1,5}))?
3232
(?P<separator>/)?
3333
(?P<path>

0 commit comments

Comments
 (0)