From 48c718e9a07c7731fd6523bd775b4debb4f8e150 Mon Sep 17 00:00:00 2001 From: Chris Norman <90391591+asos-chrisnorman@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:07:44 +0000 Subject: [PATCH 1/2] Update integration_account_partner_business_identity_value.go Add underscore to allowed characters. --- .../integration_account_partner_business_identity_value.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/logic/validate/integration_account_partner_business_identity_value.go b/internal/services/logic/validate/integration_account_partner_business_identity_value.go index a5e5ec7df11b..dc44761de08c 100644 --- a/internal/services/logic/validate/integration_account_partner_business_identity_value.go +++ b/internal/services/logic/validate/integration_account_partner_business_identity_value.go @@ -23,8 +23,8 @@ func IntegrationAccountPartnerBusinessIdentityValue() pluginsdk.SchemaValidateFu return } - if !regexp.MustCompile(`^[A-Za-z0-9-() .]+$`).MatchString(v) { - errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses and hyphens", k)) + if !regexp.MustCompile(`^[A-Za-z0-9-() ._]+$`).MatchString(v) { + errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses, hyphens and underscores", k)) return } From 467a00f52948f90ac58dd1878e6c3c8e56c69708 Mon Sep 17 00:00:00 2001 From: Chris Norman <90391591+asos-chrisnorman@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:14:21 +0000 Subject: [PATCH 2/2] Update integration_account_certificate_name.go Add underscores to allowed characters --- .../logic/validate/integration_account_certificate_name.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/logic/validate/integration_account_certificate_name.go b/internal/services/logic/validate/integration_account_certificate_name.go index d7d59f3731cb..1e985b53fbd4 100644 --- a/internal/services/logic/validate/integration_account_certificate_name.go +++ b/internal/services/logic/validate/integration_account_certificate_name.go @@ -23,8 +23,8 @@ func IntegrationAccountCertificateName() pluginsdk.SchemaValidateFunc { return } - if !regexp.MustCompile(`^[A-Za-z0-9-().]+$`).MatchString(v) { - errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses and hyphens.", k)) + if !regexp.MustCompile(`^[A-Za-z0-9-()._]+$`).MatchString(v) { + errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses, hyphens and underscores.", k)) return }