update all validation tests

This commit is contained in:
Aneurin Barker Snook
2023-11-19 20:42:48 +00:00
parent db902e3c1c
commit 40482060ac
10 changed files with 24 additions and 32 deletions
+1 -2
View File
@@ -1,13 +1,12 @@
package validate
import (
"errors"
"regexp"
)
// Validation error.
var (
ErrInvalidUUID = errors.New("invalid UUID")
ErrInvalidUUID = NewError("invalid UUID")
)
var uuidRegexp = regexp.MustCompile("^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$")