summaryrefslogtreecommitdiffstats
path: root/third_party/python/giturlparse/giturlparse/platforms/friendcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/giturlparse/giturlparse/platforms/friendcode.py')
-rw-r--r--third_party/python/giturlparse/giturlparse/platforms/friendcode.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/python/giturlparse/giturlparse/platforms/friendcode.py b/third_party/python/giturlparse/giturlparse/platforms/friendcode.py
new file mode 100644
index 0000000000..6de9f17eab
--- /dev/null
+++ b/third_party/python/giturlparse/giturlparse/platforms/friendcode.py
@@ -0,0 +1,14 @@
+from .base import BasePlatform
+
+
+class FriendCodePlatform(BasePlatform):
+ DOMAINS = ("friendco.de",)
+ PATTERNS = {
+ "https": (
+ r"(?P<protocols>(git\+)?(?P<protocol>https))://(?P<domain>.+?)/"
+ r"(?P<pathname>(?P<owner>.+)@user/(?P<repo>.+)).git"
+ ),
+ }
+ FORMATS = {
+ "https": r"https://%(domain)s/%(owner)s@user/%(repo)s.git",
+ }