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