+3
-1
internal/helpers/helpers.go
+3
-1
internal/helpers/helpers.go
···
6
"github.com/labstack/echo/v4"
7
)
8
9
+
// This will confirm to the regex in the application if 5 chars are used for each side of the -
10
+
// /^[A-Z2-7]{5}-[A-Z2-7]{5}$/
11
+
var letters = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567")
12
13
func InputError(e echo.Context, custom *string) error {
14
msg := "InvalidRequest"