Skip to content

Commit

Permalink
Fix github_repository topic regex
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpops authored Dec 4, 2021
1 parent 3444b63 commit 828ee96
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 @@ -195,7 +195,7 @@ func resourceGithubRepository() *schema.Resource {
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
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"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-z0-9][a-z0-9-]{0,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 828ee96

Please sign in to comment.