mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 20:21:13 +00:00
refactor: dedupe lowercased readers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { logVerbose } from "../globals.js";
|
||||
import { normalizeOptionalString } from "../shared/string-coerce.js";
|
||||
import {
|
||||
clearPluginCommands,
|
||||
clearPluginCommandsForPlugin,
|
||||
@@ -125,7 +126,7 @@ export function validatePluginCommandDefinition(
|
||||
export function listPluginInvocationKeys(command: OpenClawPluginCommandDefinition): string[] {
|
||||
const keys = new Set<string>();
|
||||
const push = (value: string | undefined) => {
|
||||
const normalized = value?.trim().toLowerCase();
|
||||
const normalized = normalizeOptionalString(value)?.toLowerCase();
|
||||
if (!normalized) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user