mirror of
https://github.com/mihail911/modern-software-dev-assignments.git
synced 2026-10-02 03:54:37 +08:00
4 lines
221 B
Python
4 lines
221 B
Python
def extract_action_items(text: str) -> list[str]:
|
|
lines = [line.strip("- ") for line in text.splitlines() if line.strip()]
|
|
return [line for line in lines if line.endswith("!") or line.lower().startswith("todo:")]
|