From 64128b0bafb6b7ffced34cf55669c1bafe7ca159 Mon Sep 17 00:00:00 2001 From: David Kagan Date: Thu, 6 Apr 2023 12:06:32 -0400 Subject: [PATCH] reflecting changes to match docs --- dax/controller/schemar/errors.go | 2 +- pilosa.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dax/controller/schemar/errors.go b/dax/controller/schemar/errors.go index d64d438d6..d01ac5ce1 100644 --- a/dax/controller/schemar/errors.go +++ b/dax/controller/schemar/errors.go @@ -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), ) } diff --git a/pilosa.go b/pilosa.go index a95417216..32561ca08 100644 --- a/pilosa.go +++ b/pilosa.go @@ -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"