fix sanitizeRegex to not strip "dots"
sanitizeRegex was stripping dots in permalinks when generating RenderIndexes (noted during feed/rss generation). permalink was being set to `.../indexxml` instead of `.../index.xml`. Adding "dot" to the regex whitelist fixed the issue.
This commit is contained in:
parent
cb39f052d1
commit
b13afc4178
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var sanitizeRegexp = regexp.MustCompile("[^a-zA-Z0-9/_-]")
|
var sanitizeRegexp = regexp.MustCompile("[^a-zA-Z0-9/_-.]")
|
||||||
|
|
||||||
// TODO: Make these wrappers private
|
// TODO: Make these wrappers private
|
||||||
// Wrapper around Fprintf taking verbose flag in account.
|
// Wrapper around Fprintf taking verbose flag in account.
|
||||||
|
|
Loading…
Add table
Reference in a new issue