fix repo names check (#1443)

This commit is contained in:
Ludovico Magnocavallo 2023-06-15 18:08:57 +02:00 committed by GitHub
parent 782cf09f3b
commit 815728aca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ variable "repositories" {
validation {
condition = alltrue([
for k, v in var.repositories :
try(regex("^[a-zA-Z0-9_.]+$", k), null) != null
try(regex("^[a-zA-Z0-9-_.]+$", k), null) != null
])
error_message = "Repository names must match '^[a-zA-Z0-9_.]+$'."
}