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

Function shouldFormatDirectoryPattern

packages/app-core/src/lib/vault-layout.ts:398–405  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

396}
397
398function shouldFormatDirectoryPattern(pattern: string): boolean {
399 const tokens = parseDateNotePattern(pattern).filter((part) => part.kind === 'token')
400 return (
401 pattern.includes("'") ||
402 tokens.length >= 2 ||
403 tokens.some((part) => part.value === 'yyyy' || part.value === 'yy' || part.value === 'ww')
404 )
405}
406
407function formatDirectoryPattern(
408 date: Date,

Callers 3

formatDirectoryPatternFunction · 0.85
matchDirectoryPatternFunction · 0.85

Calls 1

parseDateNotePatternFunction · 0.85

Tested by

no test coverage detected