Skip to content

Commit

Permalink
fix regex for topic validation (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwarapter authored Nov 22, 2021
1 parent 3a19681 commit f1374da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/resource_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func resourceGithubRepository() *schema.Resource {
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-z0-9][a-z0-9-]*$`), "must include only lowercase alphanumeric characters or hyphens and cannot start with a hyphen"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-z0-9][a-z0-9-]{1,34}$`), "must include only lowercase alphanumeric characters or hyphens and cannot start with a hyphen and consist of 35 characters or less"),
},
},
"vulnerability_alerts": {
Expand Down

0 comments on commit f1374da

Please sign in to comment.