Skip to content
Browse files

* fix regex

  • Loading branch information...
1 parent ab727c3 commit 21646d380f363250be07aee728f984edcf9be720 @till committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Composer/Package/Dumper/BaseDumper.php
View
2 src/Composer/Package/Dumper/BaseDumper.php
@@ -92,7 +92,7 @@ public function __construct($path = null, ProcessExecutor $process = null)
*/
public function getFilename(PackageInterface $package, $extension)
{
- $name = preg_replace('[^a-z0-9_-]', '-', $package->getUniqueName());
+ $name = preg_replace('#[^a-z0-9_-]#', '-', $package->getUniqueName());
$fileName = sprintf('%s.%s',
$name,
$extension

0 comments on commit 21646d3

Please sign in to comment.
Something went wrong with that request. Please try again.