From 34b8f30c0db38cb480473573d0ecd96f8cc7c9fd Mon Sep 17 00:00:00 2001 From: Linh Vo Date: Wed, 8 Mar 2017 12:07:14 -0600 Subject: [PATCH] invalid name start with dot --- pilosa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilosa.go b/pilosa.go index 16434b04e..d7e61e46b 100644 --- a/pilosa.go +++ b/pilosa.go @@ -29,7 +29,7 @@ var ( // Regular expression to valuate db and frame's name // Todo: remove . when frame doesn't require . for topN -var nameRegexp = regexp.MustCompile(`^([^.][a-z0-9._-]{1,64}$)`) +var nameRegexp = regexp.MustCompile(`^[a-z0-9][a-z0-9._-]{0,64}$`) // Profile represents vertical column in a database. // A profile can have a set of attributes attached to it.