Skip to content

Commit

Permalink
azurerm_logic_app_integration_account_certificate/`azurerm_logic_ap…
Browse files Browse the repository at this point in the history
…p_integration_account_partner` - `name`/`business_identity.value` now accepts underscores. (#23866)
  • Loading branch information
asos-chrisnorman authored Nov 10, 2023
1 parent 61e1d86 commit b4b2e56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b4b2e56

Please sign in to comment.