(settings: VaultSettings)
| 892 | } |
| 893 | |
| 894 | function weeklyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] { |
| 895 | const current = currentWeeklyNotePattern(settings) |
| 896 | const seen = new Set([dateNotePatternKey(current)]) |
| 897 | const out = [current] |
| 898 | for (const pattern of settings.weeklyNotes.legacyPatterns ?? []) { |
| 899 | const key = dateNotePatternKey(pattern) |
| 900 | if (seen.has(key)) continue |
| 901 | seen.add(key) |
| 902 | out.push(pattern) |
| 903 | } |
| 904 | return out |
| 905 | } |
| 906 | |
| 907 | function dailyNoteLocationForPattern( |
| 908 | date: Date, |
no test coverage detected