(status: &str)
| 411 | } |
| 412 | |
| 413 | fn todo_status_marker(status: &str) -> (&'static str, Option<&str>) { |
| 414 | match status.to_ascii_lowercase().as_str() { |
| 415 | "completed" | "complete" | "done" => ("[x]", None), |
| 416 | "in_progress" | "in-progress" | "active" => ("[~]", None), |
| 417 | "pending" | "todo" | "not_started" | "not-started" => ("[ ]", None), |
| 418 | _ => ("[?]", Some(status)), |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | fn single_line(content: &str) -> String { |
| 423 | let normalized = content.split_whitespace().collect::<Vec<_>>().join(" "); |
no test coverage detected