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

Function readTwoDigitYear

packages/app-core/src/lib/vault-layout.ts:331–334  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

329}
330
331function readTwoDigitYear(value: string): number {
332 const n = Number(value)
333 return n >= 70 ? 1900 + n : 2000 + n
334}
335
336function matchDateNotePattern(pattern: string, text: string): DateNotePatternMatch | null {
337 const captures: Array<{ token: DateNotePatternToken; index: number }> = []

Callers 1

matchDateNotePatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected