Skip to content

Commit f1374da

Browse files
authored
fix regex for topic validation (#951)
1 parent 3a19681 commit f1374da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/resource_github_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func resourceGithubRepository() *schema.Resource {
178178
Optional: true,
179179
Elem: &schema.Schema{
180180
Type: schema.TypeString,
181-
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"),
181+
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"),
182182
},
183183
},
184184
"vulnerability_alerts": {

0 commit comments

Comments
 (0)