(text: string, max = UI_LOG_FIELD_MAX)
| 151 | |
| 152 | /** Cut a text field at the shared cap and say so. */ |
| 153 | export function capField(text: string, max = UI_LOG_FIELD_MAX): string { |
| 154 | return text.length > max ? `${text.slice(0, max)} [cut at ${max}]` : text; |
| 155 | } |
| 156 | |
| 157 | interface Repeat { |
| 158 | entry: UiLogEntry; |
no outgoing calls
no test coverage detected