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

Function normalizeDailyNoteTitlePattern

apps/desktop/src/main/vault.ts:783–787  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

781}
782
783function normalizeDailyNoteTitlePattern(value: unknown): string {
784 if (typeof value !== 'string') return DEFAULT_DAILY_NOTE_TITLE_PATTERN
785 const trimmed = value.trim().replace(/[\\/]+/g, '-')
786 return trimmed || DEFAULT_DAILY_NOTE_TITLE_PATTERN
787}
788
789function normalizeDailyNoteLocale(value: unknown): string {
790 if (typeof value !== 'string') return DEFAULT_DAILY_NOTE_LOCALE

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected