We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b647270 commit fd2e5c4Copy full SHA for fd2e5c4
1 file changed
giturlparse/platforms/bitbucket.py
@@ -4,7 +4,7 @@
4
class BitbucketPlatform(BasePlatform):
5
PATTERNS = {
6
"https": (
7
- r"(?P<protocols>(git\+)?(?P<protocol>https))://(?P<_user>.+)@(?P<domain>.+?)"
+ r"(?P<protocols>(git\+)?(?P<protocol>https))://(?:(?P<_user>.+)@)?(?P<domain>.+?)"
8
r"(?P<pathname>/(?P<owner>.+)/(?P<repo>.+?)(?:\.git)?)$"
9
),
10
"ssh": (
@@ -16,5 +16,5 @@ class BitbucketPlatform(BasePlatform):
16
"https": r"https://%(owner)s@%(domain)s/%(owner)s/%(repo)s%(dot_git)s",
17
"ssh": r"git@%(domain)s:%(owner)s/%(repo)s%(dot_git)s",
18
}
19
- DOMAINS = ("bitbucket.org",)
+ DOMAINS = ("bitbucket.org", "bitbucket.com")
20
DEFAULTS = {"_user": "git"}
0 commit comments