MCPcopy Create free account
hub / github.com/basecamp/omarchy / slugify

Function slugify

shell/plugins/menu/MenuModel.js:192–194  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

190}
191
192function slugify(value) {
193 return String(value || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "item"
194}
195
196function depthFor(items, id) {
197 var depth = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected