Skip to content

Commit

Permalink
Whoops! Just use the regular expression in Azure's docs.
Browse files Browse the repository at this point in the history
I missed that on the first eye-over.
  • Loading branch information
mjgpy3 committed Jul 3, 2017
1 parent d01b8e5 commit 5a49ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_storage_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func validateArmStorageTableName(v interface{}, k string) (ws []string, errors [
"Table Storage %q cannot use the word `table`: %q",
k, value))
}
if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{3,63}$`).MatchString(value) {
if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{2,62}$`).MatchString(value) {
errors = append(errors, fmt.Errorf(
"Table Storage %q cannot begin with a numeric character, only alphanumeric characters are allowed and must be between 3 and 63 characters long: %q",
k, value))
Expand Down

0 comments on commit 5a49ff4

Please sign in to comment.