Support zero extension build result

This commit is contained in:
crazywhalecc
2025-03-25 00:05:46 +08:00
parent 625a03e799
commit 8cd69b2b70

View File

@@ -165,7 +165,7 @@ abstract class BaseCommand extends Command
return SPC_EXTENSION_ALIAS[$lower];
}
return $lower;
}, is_array($ext_list) ? $ext_list : explode(',', $ext_list));
}, is_array($ext_list) ? $ext_list : array_filter(explode(',', $ext_list)));
// filter internals
return array_values(array_filter($ls, function ($x) {