mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-06 22:40:31 -05:00
markdown: backup title should use TrimSuffix, not TrimRight (#1515)
This commit is contained in:
parent
d85e90a7b4
commit
36a62f0915
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue