Browse Source

Fixed typo

Markus Staab 7 years ago
parent
commit
76bf6bdf97
1 changed files with 1 additions and 1 deletions
  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'];
         $this->url = $repoConfig['url'];
 
 
         // force url for packagist.org to repo.packagist.org
         // 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';
             $this->url = $match['proto'].'://repo.packagist.org';
         }
         }