Explorar el Código

Use possessive quantifiers

pfofi hace 5 años
padre
commit
82825ccc74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/Repository/ComposerRepository.php

+ 1 - 1
src/Composer/Repository/ComposerRepository.php

@@ -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;
             }