mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Use a saner file name for package archives
This commit is contained in:
parent
bcbc50c0d6
commit
33828b38df
2 changed files with 4 additions and 3 deletions
|
@ -63,7 +63,7 @@ class ArchiveManagerTest extends ArchiverTest
|
|||
|
||||
protected function getTargetName(PackageInterface $package, $format)
|
||||
{
|
||||
$packageName = $package->getUniqueName();
|
||||
$packageName = preg_replace('#[^a-z0-9-_.]#i', '-', $package->getPrettyString());
|
||||
$target = $this->targetDir.'/'.$packageName.'.'.$format;
|
||||
|
||||
return $target;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue