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

Function mergeCapture

packages/app-core/src/lib/vault-layout.ts:321–329  ·  view source on GitHub ↗
(
  match: DateNotePatternMatch,
  key: keyof DateNotePatternMatch,
  value: number
)

Source from the content-addressed store, hash-verified

319}
320
321function mergeCapture(
322 match: DateNotePatternMatch,
323 key: keyof DateNotePatternMatch,
324 value: number
325): boolean {
326 if (match[key] !== undefined && match[key] !== value) return false
327 match[key] = value
328 return true
329}
330
331function readTwoDigitYear(value: string): number {
332 const n = Number(value)

Callers 2

matchDateNotePatternFunction · 0.85
mergePatternMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected