spf13/hugo — pull request #31 by cactus (2013-08-13 02:04:59+00:00)
Title: sanitizeRegex chopping dots

~~~ go
var sanitizeRegexp = regexp.MustCompile("[^a-zA-Z0-9/_-]")
~~~

The above, as part of RenderIndexes with rss.xml template, results in Permalink being set to ".../indexxml" instead of ".../index.xml".

If I change it to

~~~ go
var sanitizeRegexp = regexp.MustCompile("[^.a-zA-Z0-9/_-]")
~~~

It works ok.