1
0
Fork 0
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:
Nils Adermann 2013-02-07 11:36:49 +01:00
parent bcbc50c0d6
commit 33828b38df
2 changed files with 4 additions and 3 deletions

View file

@ -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;