MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / isHexId

Function isHexId

scripts/fungrim/gen-reference-doc.ts:274–274  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

272}
273
274const isHexId = (id: string) => /^[0-9a-f]{6}$/.test(id);
275const slugify = (s: string) =>
276 s.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
277

Callers 1

renderEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected