( date: Date, settings: VaultSettings, pattern: DateNotePatternSettings )
| 905 | } |
| 906 | |
| 907 | function dailyNoteLocationForPattern( |
| 908 | date: Date, |
| 909 | settings: VaultSettings, |
| 910 | pattern: DateNotePatternSettings |
| 911 | ): DailyNoteLocation { |
| 912 | const locale = pattern.locale ?? DEFAULT_DAILY_NOTE_LOCALE |
| 913 | const subpath = normalizePrimaryRelativeSubpath( |
| 914 | normalizeDailyNotesDirectory(formatDirectoryPattern(date, pattern.directory, locale)), |
| 915 | settings |
| 916 | ) |
| 917 | const title = normalizeDailyNoteTitlePattern( |
| 918 | formatDateNotePattern( |
| 919 | date, |
| 920 | pattern.titlePattern ?? DEFAULT_DAILY_NOTE_TITLE_PATTERN, |
| 921 | locale |
| 922 | ) |
| 923 | ) |
| 924 | return { title, subpath } |
| 925 | } |
| 926 | |
| 927 | function weeklyNoteLocationForPattern( |
| 928 | date: Date, |
no test coverage detected