MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / isHandle

Function isHandle

src/services/registry.ts:161–161  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

159 const pathToHandle = new Map<string, string>()
160
161 const isHandle = (v: string) => /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v)
162
163 const resolveHandle = (filePathOrHandle: string) => pathToHandle.get(filePathOrHandle) ?? filePathOrHandle
164

Callers 1

installMergeShimsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected