mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-21 05:26:34 +02:00
Adding '_' to allowed chars.
This commit is contained in:
@@ -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])?)*$`)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user