(maxCharacters: number)
| 122 | } |
| 123 | |
| 124 | function splitBudget(maxCharacters: number): { head: number; tail: number } { |
| 125 | return { |
| 126 | head: Math.ceil(maxCharacters / 2), |
| 127 | tail: Math.floor(maxCharacters / 2), |
| 128 | }; |
| 129 | } |
| 130 | |
| 131 | function formatHeadTail(head: string, tail: string, omittedCharacters: number): string { |
| 132 | if (omittedCharacters <= 0) return head + tail; |
no outgoing calls
no test coverage detected