reflecting changes to match docs

This commit is contained in:
David Kagan 2023-04-06 12:06:32 -04:00
parent b872c5c15c
commit 64128b0baf
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ func NewErrDatabaseIDInvalid(databaseID dax.DatabaseID) error {
func NewErrDatabaseNameInvalid(databaseName dax.DatabaseName) error {
return errors.New(
ErrCodeDatabaseNameInvalid,
fmt.Sprintf("invalid index or field name %s, must match [a-z][a-z0-9Θ_-]* and contain at most 230 characters", databaseName),
fmt.Sprintf("invalid index or field name %s, must match [a-z][a-z0-9Θ_-]* and contain at most 300 characters", databaseName),
)
}

View file

@ -135,7 +135,7 @@ func newPreconditionFailedError(err error) PreconditionFailedError {
}
// Regular expression to validate index and field names.
var nameRegexp = regexp.MustCompile(`^[a-z][a-z0-9Θ_-]{0,229}$`)
var nameRegexp = regexp.MustCompile(`^[a-z][a-z0-9Θ_-]{0,299}$`)
// TimeFormat is the go-style time format used to parse string dates.
const TimeFormat = "2006-01-02T15:04"