(value: string | null)
| 324 | } |
| 325 | |
| 326 | function sanitizeText(value: string | null): string { |
| 327 | if (value === null) { |
| 328 | return ""; |
| 329 | } |
| 330 | |
| 331 | const text = value.replace(/\s+/g, " ").trim(); |
| 332 | return text.length > 96 ? `${text.slice(0, 93)}...` : text; |
| 333 | } |
no outgoing calls
no test coverage detected