(text: string)
| 397 | return t14; |
| 398 | } |
| 399 | export function stripSystemReminders(text: string): string { |
| 400 | const CLOSE = '</system-reminder>'; |
| 401 | let t = text.trimStart(); |
| 402 | while (t.startsWith('<system-reminder>')) { |
| 403 | const end = t.indexOf(CLOSE); |
| 404 | if (end < 0) break; |
| 405 | t = t.slice(end + CLOSE.length).trimStart(); |
| 406 | } |
| 407 | return t; |
| 408 | } |
| 409 | export function copyTextOf(msg: NavigableMessage): string { |
| 410 | switch (msg.type) { |
| 411 | case 'user': |
no test coverage detected