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

Function slugify

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

Source from the content-addressed store, hash-verified

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
278/** Render one identity entry into `lines`. */
279function renderEntry(

Callers 1

generateReferenceDocFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected