(template: string, date: Date)
| 72 | const DAILY_NOTES_DATE_TOKEN_PATTERN = /YYYY|MMMM|dddd|MMM|ddd|YY|MM|DD/g; |
| 73 | |
| 74 | function replaceDailyNotesDateTokens(template: string, date: Date): string { |
| 75 | return template.replace(DAILY_NOTES_DATE_TOKEN_PATTERN, (token) => |
| 76 | format(date, DAILY_NOTES_DATE_TOKEN_FORMATS[token]) |
| 77 | ); |
| 78 | } |
| 79 | |
| 80 | function hasRelativePathSegments(folderPath: string): boolean { |
| 81 | return folderPath |
no outgoing calls
no test coverage detected