MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / tokenizePluginAliasWords

Function tokenizePluginAliasWords

src/core/bridge_coordinator.ts:20380–20388  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

20378}
20379
20380function tokenizePluginAliasWords(value: string): string[] {
20381 return String(value ?? '')
20382 .replace(/@.*$/u, '')
20383 .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
20384 .toLowerCase()
20385 .split(/[^a-z0-9]+/u)
20386 .map((entry) => entry.trim())
20387 .filter(Boolean);
20388}
20389
20390function validatePluginAliasChange({
20391 alias,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected