소스 검색

Anchor pattern

pfofi 5 년 전
부모
커밋
e7f02be9ff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
             }