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

Function normalizeDailyNoteLocale

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

Source from the content-addressed store, hash-verified

787}
788
789function normalizeDailyNoteLocale(value: unknown): string {
790 if (typeof value !== 'string') return DEFAULT_DAILY_NOTE_LOCALE
791 const trimmed = value.trim()
792 return trimmed || DEFAULT_DAILY_NOTE_LOCALE
793}
794
795function normalizeWeeklyNoteTitlePattern(value: unknown): string {
796 if (typeof value !== 'string') return DEFAULT_WEEKLY_NOTE_TITLE_PATTERN

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected