(text: str)
| 387 | |
| 388 | |
| 389 | def _strip_wrapper_prefix(text: str) -> str: |
| 390 | remaining = text.strip() |
| 391 | while remaining: |
| 392 | match = _WRAPPER_BLOCK_RE.match(remaining) |
| 393 | if not match: |
| 394 | break |
| 395 | block = match.group(0).strip() |
| 396 | if not _looks_like_wrapper_text(block): |
| 397 | break |
| 398 | remaining = remaining[match.end():].lstrip() |
| 399 | if _looks_like_wrapper_text(remaining): |
| 400 | return "" |
| 401 | return remaining.strip() |
| 402 | |
| 403 | |
| 404 | def _extract_current_message(text: str) -> str | None: |
no test coverage detected