mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:27:19 -04:00 
			
		
		
		
	markdown: backup title should use TrimSuffix, not TrimRight (#1515)
This commit is contained in:
		
							parent
							
								
									d85e90a7b4
								
							
						
					
					
						commit
						36a62f0915
					
				| @ -167,5 +167,5 @@ func latest(t ...time.Time) time.Time { | |||||||
| 
 | 
 | ||||||
| // title gives a backup generated title for a page | // title gives a backup generated title for a page | ||||||
| func title(p string) string { | func title(p string) string { | ||||||
| 	return strings.TrimRight(path.Base(p), path.Ext(p)) | 	return strings.TrimSuffix(path.Base(p), path.Ext(p)) | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user