( subpath: string, title: string, settings: VaultSettings, pattern: DateNotePatternSettings )
| 1021 | } |
| 1022 | |
| 1023 | function matchDailyPattern( |
| 1024 | subpath: string, |
| 1025 | title: string, |
| 1026 | settings: VaultSettings, |
| 1027 | pattern: DateNotePatternSettings |
| 1028 | ): Date | null { |
| 1029 | const numerics = patternNumerics(pattern, subpath, title, DEFAULT_DAILY_NOTE_TITLE_PATTERN) |
| 1030 | if (!numerics) return null |
| 1031 | for (const candidate of dailyCandidateDates(numerics)) { |
| 1032 | const expected = dailyNoteLocationForPattern(candidate, settings, pattern) |
| 1033 | if (expected.subpath === subpath && expected.title === title) return candidate |
| 1034 | } |
| 1035 | return null |
| 1036 | } |
| 1037 | |
| 1038 | function matchWeeklyPattern( |
| 1039 | subpath: string, |
no test coverage detected