Update cluster.go

This commit is contained in:
Jan Mussler 2017-10-05 10:58:23 +02:00 committed by GitHub
parent 4a1170855a
commit c4af0ac6a6
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ import (
var (
alphaNumericRegexp = regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9]*$")
databaseNameRegexp = regexp.MustCompile("^[a-zA-Z][a-zA-Z0-9_]*$")
databaseNameRegexp = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$")
userRegexp = regexp.MustCompile(`^[a-z0-9]([-_a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-_a-z0-9]*[a-z0-9])?)*$`)
)