diff --git a/baked_in.go b/baked_in.go index 2f66c183..dab60f18 100644 --- a/baked_in.go +++ b/baked_in.go @@ -1417,6 +1417,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