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

Function normalizeDailyNotesDirectory

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

Source from the content-addressed store, hash-verified

775}
776
777function normalizeDailyNotesDirectory(value: unknown): string {
778 if (typeof value !== 'string') return DEFAULT_DAILY_NOTES_DIRECTORY
779 const trimmed = value.trim().replace(/^\/+|\/+$/g, '')
780 return trimmed || DEFAULT_DAILY_NOTES_DIRECTORY
781}
782
783function normalizeDailyNoteTitlePattern(value: unknown): string {
784 if (typeof value !== 'string') return DEFAULT_DAILY_NOTE_TITLE_PATTERN

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected