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

Function normalizeWeeklyNotesDirectory

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

Source from the content-addressed store, hash-verified

805}
806
807function normalizeWeeklyNotesDirectory(value: unknown): string {
808 if (typeof value !== 'string') return DEFAULT_WEEKLY_NOTES_DIRECTORY
809 const trimmed = value.trim().replace(/^\/+|\/+$/g, '')
810 return trimmed || DEFAULT_WEEKLY_NOTES_DIRECTORY
811}
812
813function normalizeTemplateId(value: unknown): string | undefined {
814 if (typeof value !== 'string') return undefined

Callers 2

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected