mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 01:10:22 +00:00
refactor: dedupe plugin lowercase helpers
This commit is contained in:
@@ -26,7 +26,7 @@ export type CommandRegistrationResult = {
|
||||
};
|
||||
|
||||
export function validateCommandName(name: string): string | null {
|
||||
const trimmed = name.trim().toLowerCase();
|
||||
const trimmed = normalizeOptionalLowercaseString(name) ?? "";
|
||||
|
||||
if (!trimmed) {
|
||||
return "Command name cannot be empty";
|
||||
|
||||
Reference in New Issue
Block a user