(status: &str)
| 467 | } |
| 468 | |
| 469 | fn todo_status_marker(status: &str) -> (&'static str, Option<&str>) { |
| 470 | match status.to_ascii_lowercase().as_str() { |
| 471 | "completed" | "complete" | "done" => ("[x]", None), |
| 472 | "in_progress" | "in-progress" | "active" => ("[~]", None), |
| 473 | "pending" | "todo" | "not_started" | "not-started" => ("[ ]", None), |
| 474 | _ => ("[?]", Some(status)), |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | fn single_line(content: &str) -> String { |
| 479 | let normalized = content.split_whitespace().collect::<Vec<_>>().join(" "); |
no test coverage detected