diff --git a/baked_in.go b/baked_in.go index b6fbaafa..9bfa5525 100644 --- a/baked_in.go +++ b/baked_in.go @@ -1398,6 +1398,7 @@ func isPostcodeByIso3166Alpha2Field(fl FieldLevel) bool { panic(fmt.Sprintf("Bad field type %T", currentField.Interface())) } + postcodeRegexInit.Do(initPostcodes) reg, found := postCodeRegexDict[currentField.String()] if !found { return false