mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
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:
parent
81d64e020e
commit
542e2579df
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user