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