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

Function normalizeDailyNoteLocale

packages/app-core/src/lib/vault-layout.ts:102–105  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

100}
101
102export function normalizeDailyNoteLocale(value: string | null | undefined): string {
103 const trimmed = (value ?? '').trim()
104 return trimmed || DEFAULT_DAILY_NOTE_LOCALE
105}
106
107export function normalizeWeeklyNoteTitlePattern(value: string | null | undefined): string {
108 const trimmed = (value ?? '').trim().replace(/[\\/]+/g, '-')

Callers 3

SettingsModalFunction · 0.90
normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected