Skip to content

Commit

Permalink
Merge pull request #2672 from River991/master
Browse files Browse the repository at this point in the history
Allow service bus subscriptions and subscription rules to start with number
  • Loading branch information
katbyte committed Jan 14, 2019
2 parents cccb5e6 + fe5788b commit 9742ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/helpers/azure/servicebus.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ValidateServiceBusQueueName() schema.SchemaValidateFunc {

func ValidateServiceBusSubscriptionName() schema.SchemaValidateFunc {
return validation.StringMatch(
regexp.MustCompile("^[a-zA-Z][-._a-zA-Z0-9]{0,48}([a-zA-Z0-9])?$"),
regexp.MustCompile("^[a-zA-Z0-9][-._a-zA-Z0-9]{0,48}([a-zA-Z0-9])?$"),
"The name can contain only letters, numbers, periods, hyphens and underscores. The name must start and end with a letter or number and be less then 50 characters long.",
)
}
Expand Down

0 comments on commit 9742ea5

Please sign in to comment.