move "dot" in regex to avoid it being part of a range
authorelij <elij@wundrd.net>
Tue, 13 Aug 2013 02:55:52 +0000 (19:55 -0700)
committerelij <elij@wundrd.net>
Tue, 13 Aug 2013 02:55:52 +0000 (19:55 -0700)
hugolib/helpers.go

index 80f92c875e20a47513de40623d25a0e1d827dd0e..c814a62897c89a7d62bfe5870c3110180c820b86 100644 (file)
@@ -27,7 +27,7 @@ import (
        "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.