Parse a pending-direction confirmation command.
(text: str)
| 626 | |
| 627 | |
| 628 | def parse_confirm_direction_request(text: str) -> Optional[str]: |
| 629 | """Parse a pending-direction confirmation command.""" |
| 630 | cleaned = first_meaningful_line(text) |
| 631 | if not cleaned: |
| 632 | return None |
| 633 | match = CONFIRM_DIRECTION_RE.match(cleaned) |
| 634 | if not match: |
| 635 | return None |
| 636 | topic = clean_profile_topic_text(match.group("topic"), strip_domain_suffix=True) |
| 637 | return topic or None |
| 638 | |
| 639 | |
| 640 | def normalize_profile_update_topics(topic_texts: List[str], user_id: str) -> Dict[str, Any]: |
no test coverage detected