From 46bd0e5d51692347647bb2e250fd0e637fc63a11 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 4 Jun 2015 20:24:28 -0400 Subject: [PATCH] allow . in names --- types/names.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/names.go b/types/names.go index 3e31991fa..bebecb479 100644 --- a/types/names.go +++ b/types/names.go @@ -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.{}()\[\]]*$`) )