mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-01 07:42:40 +00:00
Cloud function name allow underscores. (#3265)
This commit is contained in:
parent
b309ccdaab
commit
1b38f4c4d7
|
@ -101,9 +101,9 @@ func resourceCloudFunctionsFunction() *schema.Resource {
|
|||
errors = append(errors, fmt.Errorf(
|
||||
"%q cannot be longer than 48 characters", k))
|
||||
}
|
||||
if !regexp.MustCompile("^[a-zA-Z0-9-]+$").MatchString(value) {
|
||||
if !regexp.MustCompile("^[a-zA-Z0-9-_]+$").MatchString(value) {
|
||||
errors = append(errors, fmt.Errorf(
|
||||
"%q can only contain letters, numbers and hyphens", k))
|
||||
"%q can only contain letters, numbers, underscores and hyphens", k))
|
||||
}
|
||||
if !regexp.MustCompile("^[a-zA-Z]").MatchString(value) {
|
||||
errors = append(errors, fmt.Errorf(
|
||||
|
|
Loading…
Reference in New Issue
Block a user