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

This commit is contained in:
elij 2013-08-12 19:55:52 -07:00
parent b13afc4178
commit 31a1ade1b4

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