diff --git a/variables.tf b/variables.tf index 47ec94a..67c2731 100644 --- a/variables.tf +++ b/variables.tf @@ -74,7 +74,7 @@ variable "github_repositories" { // organization/repository format used by GitHub. condition = length([ for repo in var.github_repositories : 1 - if length(regexall("^[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:/-]+[*]?|\\*)$", repo)) > 0 + if length(regexall("^[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:/\\-\\*]+)$", repo)) > 0 ]) == length(var.github_repositories) error_message = "Repositories must be specified in the organization/repository format." }