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

Function normalizeDueDate

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

Source from the content-addressed store, hash-verified

96}
97
98function 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. */
105function 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