|
|
@@ -567,6 +567,9 @@ class Package
|
|
|
$repoUrl = preg_replace('{^git://github.com/}i', 'https://github.com/', $repoUrl);
|
|
|
$repoUrl = preg_replace('{^(https://github.com/.*?)\.git$}i', '$1', $repoUrl);
|
|
|
|
|
|
+ // normalize protocol case
|
|
|
+ $repoUrl = preg_replace_callback('{^(https?|git|svn)://}i', function ($match) { return strtolower($match[1]) . '://'; }, $repoUrl);
|
|
|
+
|
|
|
$this->repository = $repoUrl;
|
|
|
|
|
|
// avoid user@host URLs
|