From 63c91d679ce9646ed98b291cf34c4914810cd973 Mon Sep 17 00:00:00 2001 From: Reza Date: Sat, 19 Oct 2024 11:59:41 +0200 Subject: [PATCH] validators null fix --- lib/validation/validators.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/validation/validators.go b/lib/validation/validators.go index b8eb8b4..72388fc 100644 --- a/lib/validation/validators.go +++ b/lib/validation/validators.go @@ -428,6 +428,7 @@ func alphaValidator(match []string, value *generic.Value) error { if v == "" || v == "" { return nil } + fmt.Println("alpha:", v) for _, r := range v { if !((r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') || r == ' ') { return fmt.Errorf("is not alpha")