diff --git a/src/Deblan/Command/PlayCommand.php b/src/Deblan/Command/PlayCommand.php index e5654a0..2460058 100644 --- a/src/Deblan/Command/PlayCommand.php +++ b/src/Deblan/Command/PlayCommand.php @@ -27,7 +27,7 @@ class PlayCommand extends Command $config = $this->getApplication()->getConfigLoader()->getConfig(); $stream = strtolower(trim($input->getArgument('stream'), "/ \r\n")); - if (0 === preg_match('/^\w+$/', $stream)) { + if (0 === preg_match('/^[\w-]+$/', $stream)) { $output->writeln('The stream name is not valid.'); return false;