MCPcopy Create free account
hub / github.com/9d8dev/directory / generateSlug

Function generateSlug

components/admin/bookmark-manager.tsx:83–88  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

81}
82
83function generateSlug(title: string): string {
84 return title
85 .toLowerCase()
86 .replace(/[^a-z0-9]+/g, "-")
87 .replace(/^-+|-+$/g, "");
88}
89
90export function BookmarkManager({
91 bookmarks,

Callers 1

handleTitleChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected