(iso: string)
| 60 | } |
| 61 | |
| 62 | function parseIsoLocal(iso: string): Date { |
| 63 | // Manual parse so we always land in local-time midnight (avoiding |
| 64 | // the `new Date('YYYY-MM-DD')` UTC quirk). |
| 65 | const [y, m, dd] = iso.split('-').map((s) => Number.parseInt(s, 10)) |
| 66 | return new Date(y, m - 1, dd) |
| 67 | } |
| 68 | |
| 69 | const TASK_PREFIX_RE = /^\s*(?:>\s*)*(?:[-+*]|\d+[.)])\s+\[[ xX]\]\s?/ |
| 70 |
no outgoing calls
no test coverage detected