Stream name regexp
This commit is contained in:
parent
8e20fbb50a
commit
eb705fdc78
|
@ -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('<error>The stream name is not valid.</error>');
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue