invalid name start with dot

This commit is contained in:
Linh Vo 2017-03-08 12:07:14 -06:00 committed by Travis
parent 920b9d01e2
commit 34b8f30c0d

View file

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