feat: add new datePattern replacers for shortmonth

* `{shortMonth3}` 3-letter months, e.g. Sep, Oct, Nov, Dec
* `{shortMonth4}` 4-letter months, e.g. Sept, Octo, Nove, Dece
This commit is contained in:
Compositr 2023-09-12 07:35:46 +10:00
parent 81d64e020e
commit 542e2579df
No known key found for this signature in database
GPG Key ID: 411170F7641C3EA8

View File

@ -105,6 +105,8 @@ function getMonthNoteTitle(rootNote, monthNumber, dateObj) {
const monthName = MONTHS[dateObj.getMonth()];
return pattern
.replace(/{shortMonth3}/g, monthName.slice(0,3))
.replace(/{shortMonth4}/g, monthName.slice(0,4))
.replace(/{monthNumberPadded}/g, monthNumber)
.replace(/{month}/g, monthName);
}