mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08: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