There was an error while loading. Please reload this page.
1 parent 22b09ce commit 5798029Copy full SHA for 5798029
src/Symfony/Component/Console/Command/Command.php
@@ -615,7 +615,7 @@ public function asXml($asDom = false)
615
*/
616
private function validateName($name)
617
{
618
- if (!preg_match('/^[^\:]+(\:[^\:]+)*$/', $name)) {
+ if (!preg_match('/^[^\:]++(\:[^\:]++)*$/', $name)) {
619
throw new \InvalidArgumentException(sprintf('Command name "%s" is invalid.', $name));
620
}
621
0 commit comments