From: elij Date: Tue, 13 Aug 2013 02:55:52 +0000 (-0700) Subject: move "dot" in regex to avoid it being part of a range X-Git-Tag: v0.9~164^2~1^2 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=31a1ade1;p=brevno-suite%2Fhugo move "dot" in regex to avoid it being part of a range --- diff --git a/hugolib/helpers.go b/hugolib/helpers.go index 80f92c87..c814a628 100644 --- 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.