(settings: VaultSettings)
| 879 | } |
| 880 | |
| 881 | function dailyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] { |
| 882 | const current = currentDailyNotePattern(settings) |
| 883 | const seen = new Set([dateNotePatternKey(current)]) |
| 884 | const out = [current] |
| 885 | for (const pattern of settings.dailyNotes.legacyPatterns ?? []) { |
| 886 | const key = dateNotePatternKey(pattern) |
| 887 | if (seen.has(key)) continue |
| 888 | seen.add(key) |
| 889 | out.push(pattern) |
| 890 | } |
| 891 | return out |
| 892 | } |
| 893 | |
| 894 | function weeklyNotePatterns(settings: VaultSettings): DateNotePatternSettings[] { |
| 895 | const current = currentWeeklyNotePattern(settings) |
no test coverage detected