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 (
ErrInvalidEmail = errors.New("invalid email address")
ErrInvalidEmail = NewError("invalid email address")
)
// Based on https://stackoverflow.com/a/201378