Use the original UID format consistently across API, username, and store validation so UUID-based callers continue to work. Regenerate API documentation and add regression coverage for UUID memo IDs.
7 lines
123 B
Go
7 lines
123 B
Go
package base
|
|
|
|
import "regexp"
|
|
|
|
var (
|
|
UIDMatcher = regexp.MustCompile(`^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,34}[a-zA-Z0-9])?$`)
|
|
)
|