Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
v-cheye authored and pbrit committed May 31, 2020
1 parent 6c81c98 commit 12d2c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/helpers/azure/servicebus.go
Expand Up @@ -28,8 +28,8 @@ func ValidateServiceBusSubscriptionName() schema.SchemaValidateFunc {

func ValidateServiceBusTopicName() schema.SchemaValidateFunc {
return validation.StringMatch(
regexp.MustCompile("^[a-zA-Z0-9][-._/a-zA-Z0-9]{0,258}[a-zA-Z0-9]$"),
"The topic name can contain only letters, numbers, periods, hyphens, slashes and underscores. The namespace must start with a letter or number, and it must end with a letter or number and be less then 260 characters long.",
regexp.MustCompile("^[a-zA-Z0-9][-._~a-zA-Z0-9]{0,258}([a-zA-Z0-9])?$"),
"The topic name can contain only letters, numbers, periods, hyphens, tildas and underscores. The namespace must start with a letter or number, and it must end with a letter or number and be less then 260 characters long.",
)
}

Expand Down

0 comments on commit 12d2c7d

Please sign in to comment.