You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#1269
## Fixes Or Enhances
**Make sure that you've checked the boxes below before you submit PR:**
- [ ] Tests exist or have been written that cover this particular
change.
@go-playground/validator-maintainers
panic(fmt.Sprintf("Bad field type %T", field.Interface()))
2812
2812
}
2813
-
returniso3166_1_alpha_numeric[code]
2813
+
2814
+
_, ok:=iso3166_1_alpha_numeric[code]
2815
+
returnok
2814
2816
}
2815
2817
2816
2818
// isIso3166AlphaNumericEU is the validation function for validating if the current field's value is a valid iso3166-1 alpha-numeric European Union country code.
panic(fmt.Sprintf("Bad field type %T", field.Interface()))
2862
2866
}
2863
-
returniso4217_numeric[code]
2867
+
2868
+
_, ok:=iso4217_numeric[code]
2869
+
returnok
2864
2870
}
2865
2871
2866
2872
// isBCP47LanguageTag is the validation function for validating if the current field's value is a valid BCP 47 language tag, as parsed by language.Parse
0 commit comments