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

Function normalizeDailyNotesDirectory

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

Source from the content-addressed store, hash-verified

85}
86
87export function normalizeDailyNotesDirectory(directory: string | null | undefined): string {
88 const trimmed = (directory ?? '').trim().replace(/^\/+|\/+$/g, '')
89 return trimmed || DEFAULT_DAILY_NOTES_DIRECTORY
90}
91
92export function normalizeWeeklyNotesDirectory(directory: string | null | undefined): string {
93 const trimmed = (directory ?? '').trim().replace(/^\/+|\/+$/g, '')

Callers 5

SettingsModalFunction · 0.90
commitFunction · 0.90
normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected