shithub: hugo

Download patch

ref: 31a1ade1b4eb12003a1ee31a2abf4407cc0c7285
parent: b13afc4178367d801fc21efa6a4501ce860bc43c
author: elij <[email protected]>
date: Mon Aug 12 15:55:52 EDT 2013

move "dot" in regex to avoid it being part of a range

--- 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.