From f1374da60a1d59f8652018e097dd9c65e499d4bf Mon Sep 17 00:00:00 2001 From: iwarapter Date: Mon, 22 Nov 2021 16:08:36 +0000 Subject: [PATCH] fix regex for topic validation (#951) --- github/resource_github_repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 8adf0be130..3c216645c5 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -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": {