1
0
Fork 0

Use possessive quantifiers

pull/8136/head
pfofi 2019-06-07 09:13:11 +02:00
parent e7f02be9ff
commit 82825ccc74
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
protected function canonicalizeUrl($url)
{
if ('/' === $url[0]) {
if (preg_match('{^[^:]+://[^/]*}', $this->url, $matches)) {
if (preg_match('{^[^:]++://[^/]*+}', $this->url, $matches)) {
return $matches[0] . $url;
}