Skip to content

Commit d3a93d8

Browse files
committed
fix: route command error on name is one char
1 parent 2742340 commit d3a93d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ConsoleConst.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ConsoleConst
1818

1919
public const CMD_NAME_MAX_LEN = 48;
2020

21-
public const REGEX_CMD_PATH = '/^[a-zA-Z][\w:-]+$/';
21+
public const REGEX_CMD_PATH = '/^[a-zA-Z][\w:-]*$/';
2222

2323
public const REGEX_CMD_NAME = '/^[a-zA-z][\w-]+$/';
2424
}

src/Handler/AbstractHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,10 @@ protected function doRun(array $args): mixed
369369
return $result;
370370
}
371371

372-
protected function doExecute(): mixed
373-
{
374-
return '';
375-
}
372+
// protected function doExecute(): mixed
373+
// {
374+
// return '';
375+
// }
376376

377377
/**
378378
* coroutine run by swoole go()

0 commit comments

Comments
 (0)