(raw: string | undefined)
| 96 | } |
| 97 | |
| 98 | function normalizeDueDate(raw: string | undefined): string | undefined { |
| 99 | if (!raw) return undefined |
| 100 | const cleaned = unquote(raw.trim()) |
| 101 | return isValidIsoDate(cleaned) ? cleaned : undefined |
| 102 | } |
| 103 | |
| 104 | /** Extract just the three keys we care about. Unparseable lines are ignored. */ |
| 105 | function parseNoteDefaults(body: string): { defaults: NoteDefaults; fmEndOffset: number } { |
no test coverage detected