浏览代码

Merge pull request #7487 from staabm/patch-1

Fixed typo
Jordi Boggiano 7 年之前
父节点
当前提交
8eae15182c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Repository/ComposerRepository.php

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

@@ -92,7 +92,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
         $this->url = $repoConfig['url'];
 
         // force url for packagist.org to repo.packagist.org
-        if (preg_match('{^(?P<proto>https?)://packagist.org/?$}i', $this->url, $match)) {
+        if (preg_match('{^(?P<proto>https?)://packagist\.org/?$}i', $this->url, $match)) {
             $this->url = $match['proto'].'://repo.packagist.org';
         }