ref: b13afc4178367d801fc21efa6a4501ce860bc43c
parent: cb39f052d19dfbf1463b028e5173fc53d917cac1
author: elij <elij@wundrd.net>
date: Mon Aug 12 15:02:43 EDT 2013
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.
--- a/hugolib/helpers.go
+++ b/hugolib/helpers.go
@@ -27,7 +27,7 @@
"time"
)
-var sanitizeRegexp = regexp.MustCompile("[^a-zA-Z0-9/_-]")
+var sanitizeRegexp = regexp.MustCompile("[^a-zA-Z0-9/_-.]")
// TODO: Make these wrappers private
// Wrapper around Fprintf taking verbose flag in account.
--
⑨