MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / normalizeModeKey

Function normalizeModeKey

src/cm/supportedModes.ts:16–20  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

14}
15
16function normalizeModeKey(value: string): string {
17 return String(value ?? "")
18 .trim()
19 .toLowerCase();
20}
21
22function isSafeModeId(value: string): boolean {
23 return /^[a-z0-9][a-z0-9._-]*$/.test(value);

Callers 3

slugifyModeIdFunction · 0.70
getModeIdFunction · 0.70
createLanguageLoaderFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected