(text: string)
| 325 | } |
| 326 | |
| 327 | function splitCamelCase(text: string): string[] { |
| 328 | return text |
| 329 | .replace(/([a-z])([A-Z])/g, "$1 $2") |
| 330 | .replace(/([A-Z])([A-Z][a-z])/g, "$1 $2") |
| 331 | .toLowerCase() |
| 332 | .split(/[\s_-]+/) |
| 333 | .filter((t) => t.length > 1); |
| 334 | } |
| 335 | |
| 336 | function clamp01(value: number): number { |
| 337 | if (value <= 0) return 0; |
no outgoing calls
no test coverage detected