diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 403b31cd9..8a5da2b23 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/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('{^(?Phttps?)://packagist.org/?$}i', $this->url, $match)) { + if (preg_match('{^(?Phttps?)://packagist\.org/?$}i', $this->url, $match)) { $this->url = $match['proto'].'://repo.packagist.org'; }