Fix uppercase scripts not working as CLI command

This commit is contained in:
Kijin Sung 2023-09-26 15:02:09 +09:00
parent 5d78d114a7
commit a4b49048f3

View file

@ -1242,7 +1242,7 @@ class ModuleHandler extends Handler
echo 'Command not supplied.' . PHP_EOL;
exit(1);
}
if (!preg_match('/^([a-z0-9_-]+)\.([a-z0-9_-]+)$/', $command, $matches))
if (!preg_match('/^([a-z0-9_-]+)\.([a-z0-9_-]+)$/i', $command, $matches))
{
echo 'Invalid command: ' . $command . PHP_EOL;
exit(1);