Skip to content

Commit

Permalink
validators null fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Oct 19, 2024
1 parent 85051cb commit 63c91d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/validation/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ func alphaValidator(match []string, value *generic.Value) error {
if v == "" || v == "<nil>" {
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")
Expand Down

0 comments on commit 63c91d6

Please sign in to comment.