move "dot" in regex to avoid it being part of a range - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 31a1ade1b4eb12003a1ee31a2abf4407cc0c7285
(DIR) parent b13afc4178367d801fc21efa6a4501ce860bc43c
(HTM) Author: elij <elij@wundrd.net>
Date: Mon, 12 Aug 2013 19:55:52 -0700
move "dot" in regex to avoid it being part of a range
Diffstat:
M hugolib/helpers.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/hugolib/helpers.go b/hugolib/helpers.go
@@ -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.