Fixed command name case sensitivity issue noted in #462

This commit is contained in:
Dylan K. Taylor 2017-03-25 10:26:06 +00:00
parent 5926bab323
commit 5332887a0a

View File

@ -136,7 +136,7 @@ class SimpleCommandMap implements CommandMap{
if($label === null){
$label = $command->getName();
}
$label = strtolower(trim($label));
$label = trim($label);
$fallbackPrefix = strtolower(trim($fallbackPrefix));
$registered = $this->registerAlias($command, false, $fallbackPrefix, $label);