Commit 36a62f09 authored by Chao Huang's avatar Chao Huang Committed by Matt Holt

markdown: backup title should use TrimSuffix, not TrimRight (#1515)

parent d85e90a7
......@@ -167,5 +167,5 @@ func latest(t ...time.Time) time.Time {
// title gives a backup generated title for a page
func title(p string) string {
return strings.TrimRight(path.Base(p), path.Ext(p))
return strings.TrimSuffix(path.Base(p), path.Ext(p))
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment