Normalize a string for comparison (lowercase, strip, collapse whitespace).
(val: str | None)
| 131 | |
| 132 | |
| 133 | def normalize_string(val: str | None) -> str: |
| 134 | """Normalize a string for comparison (lowercase, strip, collapse whitespace).""" |
| 135 | if val is None: |
| 136 | return "" |
| 137 | return " ".join(str(val).strip().lower().split()) |
| 138 | |
| 139 | |
| 140 | def status_to_decision( |
no outgoing calls
no test coverage detected