Adding '_' to allowed chars.

This commit is contained in:
Jan M
2017-10-05 10:53:19 +02:00
parent 48ec6b35b9
commit 4a1170855a
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -31,6 +31,7 @@ import (
var (
alphaNumericRegexp = 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])?)*$`)
)