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

Function isSafeModeId

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

Source from the content-addressed store, hash-verified

20}
21
22function isSafeModeId(value: string): boolean {
23 return /^[a-z0-9][a-z0-9._-]*$/.test(value);
24}
25
26function slugifyModeId(value: string): string {
27 return normalizeModeKey(value)

Callers 1

getModeIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected