mirror of
https://github.com/usememos/memos.git
synced 2026-11-19 18:39:12 +01:00
b7d5d09f8a
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.
8 lines
123 B
Go
8 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])?$`)
|
|
)
|