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

Function titleCaseLabel

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

Source from the content-addressed store, hash-verified

3310 }
3311
3312 function titleCaseLabel(label) {
3313 return String(label || "")
3314 .split(/[\s-]+/)
3315 .filter(Boolean)
3316 .slice(0, 3)
3317 .map((word) => word.length <= 3 ? word.toUpperCase() : word[0].toUpperCase() + word.slice(1))
3318 .join(" ");
3319 }
3320
3321 function shortGraphTitle(title, maxLength = 22) {
3322 const normalized = String(title || ui().wiki.architecture).replace(/\s+/g, " ").trim();

Callers 1

candidateLabelsForNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected