Skip to content

Commit 0c99200

Browse files
committed
phonenumber fix bug
1 parent 8df9aee commit 0c99200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validation/validators.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func phoneValidator(match []string, value *generic.Value) error {
171171
if v == "" || v == "<nil>" {
172172
return nil
173173
}
174-
if is.PhoneNumber(v) {
174+
if !is.PhoneNumber(v) {
175175
return fmt.Errorf("value must be valid phone number")
176176
}
177177
return nil

0 commit comments

Comments
 (0)