Skip to content

Commit 24d78aa

Browse files
committed
Cleanup package name (remove dashes -)
1 parent eabdd39 commit 24d78aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Markdown/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private function treatFields(InputInterface $input, OutputInterface $output): ar
128128
private function promptName(SymfonyStyle $io): string
129129
{
130130
$packageName = explode('/', $this->composerData['name']);
131-
$name = $io->ask('Project Name', $packageName[1]);
131+
$name = $io->ask('Project Name', str_replace($packageName[1], '-', ' '));
132132

133133
if (!$this->isFieldFilled($name)) {
134134
throw new EmptyFieldException('Mention a name for your project 😺');

0 commit comments

Comments
 (0)