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