From 10d7582c1071be90de7b6b9686c21f748d84fa0d Mon Sep 17 00:00:00 2001 From: Stan Domula Date: Fri, 3 Dec 2021 14:56:24 +0100 Subject: [PATCH] fix topic regex to allow single characters --- 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 a5e8830e47..4ca639693f 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -179,7 +179,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": {