From b3890e95566c8fb301c0996f3b5daaa148c6a209 Mon Sep 17 00:00:00 2001 From: Dennis Schwertel Date: Fri, 22 Jun 2018 10:31:46 +0200 Subject: [PATCH] removed "s" as it is just wrong for matching --- giturlparse/platforms/base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/giturlparse/platforms/base.py b/giturlparse/platforms/base.py index 28d601a..686a778 100644 --- a/giturlparse/platforms/base.py +++ b/giturlparse/platforms/base.py @@ -10,10 +10,10 @@ class BasePlatform(object): } PATTERNS = { - 'ssh': r"(?P<_user>.+)s@(?P.+)s:(?P.+)s.git", - 'http': r"http://(?P.+)s/(?P.+)s.git", - 'https': r"http://(?P.+)s/(?P.+)s.git", - 'git': r"git://(?P.+)s/(?P.+)s.git" + 'ssh': r"(?P<_user>.+)@(?P.+):(?P.+).git", + 'http': r"http://(?P.+)/(?P.+).git", + 'https': r"http://(?P.+)/(?P.+).git", + 'git': r"git://(?P.+)/(?P.+).git" } # None means it matches all domains