allow . in names

This commit is contained in:
Ethan Buchman
2015-06-04 20:24:28 -04:00
parent bf1c9a869c
commit 46bd0e5d51

View File

@@ -17,7 +17,7 @@ var (
// Name should be alphanum, underscore, slash
// Data should be anything permitted in JSON
regexpAlphaNum = regexp.MustCompile("^[a-zA-Z0-9_/]*$")
regexpAlphaNum = regexp.MustCompile("^[a-zA-Z0-9._/]*$")
regexpJSON = regexp.MustCompile(`^[a-zA-Z0-9_/ \-"':,\n\t.{}()\[\]]*$`)
)