mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Fix regex cleaning up repo URLs, fixes #5686
This commit is contained in:
parent
d4afef35cd
commit
64d29dc6dc
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
|
|||
$this->config = $config;
|
||||
$this->options = $repoConfig['options'];
|
||||
$this->url = $repoConfig['url'];
|
||||
$this->baseUrl = rtrim(preg_replace('{^(.*)(?:/[^/\\]+.json)?(?:[?#].*)?$}', '$1', $this->url), '/');
|
||||
$this->baseUrl = rtrim(preg_replace('{(?:/[^/\\\\]+\.json)?(?:[?#].*)?$}', '', $this->url), '/');
|
||||
$this->io = $io;
|
||||
$this->cache = new Cache($io, $config->get('cache-repo-dir').'/'.preg_replace('{[^a-z0-9.]}i', '-', $this->url), 'a-z0-9.$');
|
||||
$this->loader = new ArrayLoader();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue