MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / slugLabel

Function slugLabel

deployments/desktop/static/desktop.js:3304–3310  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

3302 ];
3303
3304 function slugLabel(label) {
3305 return String(label || "node")
3306 .toLowerCase()
3307 .replace(/[^a-z0-9\u4e00-\u9fff]+/g, "-")
3308 .replace(/^-|-$/g, "")
3309 .slice(0, 40) || "node";
3310 }
3311
3312 function titleCaseLabel(label) {
3313 return String(label || "")

Callers 1

buildWikiMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected