Files
modern-software-dev-assignm…/week4/backend/app/services/extract.py
T
2025-10-13 11:22:22 -07:00

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:")]