Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
function
isSafeModeId(value: string): boolean {
23
return
/^[a-z0-9][a-z0-9._-]*$/.test(value);
24
}
25
26
function
slugifyModeId(value: string): string {
27
return
normalizeModeKey(value)
Callers
1
getModeId
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected