diff --git a/src/Git/Repository.php b/src/Git/Repository.php index c25cda4..4ee6842 100644 --- a/src/Git/Repository.php +++ b/src/Git/Repository.php @@ -251,7 +251,7 @@ public static function parseRemoteUrl() '#^(?Phttps?|git|ssh|rsync)\://(?:(?P.+)@)*(?P[a-z0-9_.-]*)[:/]*(?P[\d]+){0,1}(?P\/((?P[\w\-]+)\/)?((?P[\w\-\.]+?)(\.git|\/)?)?)$#smi', '#(git\+)?((?P\w+)://)((?P\w+)@)?((?P[\w\.\-]+))(:(?P\d+))?(?P(\/(?P\w+)/)?(\/?(?P[\w\-]+)(\.git|\/)?)?)$#smi', '#^(?:(?P.+)@)*(?P[a-z0-9_.-]*)[:]*(?P[\d]+){0,1}(?P\/?(?P.+)/(?P.+).git)$#smi', - '#((?P\w+)@)?((?P[\w\.\-]+))[\:\/]{1,2}(?P((?P\w+)/)?((?P[\w\-]+)(\.git|\/)?)?)$#smi', + '#((?P\w+)@)?((?P[\w\.\-]+))[\:\/]{1,2}(?P((?P\w+)/)?((?P[\w\-/]+)(\.git|\/)?)?)$#smi', ]; foreach ($patterns as $pattern) { if (preg_match($pattern, $url, $match)) {