MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeDueDate

Function normalizeDueDate

packages/shared-domain/src/tasks.ts:102–106  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

100}
101
102function 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. */
109function parseNoteDefaults(body: string): { defaults: NoteDefaults; fmEndOffset: number } {

Callers 1

parseNoteDefaultsFunction · 0.70

Calls 2

unquoteFunction · 0.70
isValidIsoDateFunction · 0.70

Tested by

no test coverage detected