(label)
| 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(); |
no outgoing calls
no test coverage detected