diff --git a/azure/modules/custom-data/variables.tf b/azure/modules/custom-data/variables.tf index 646ef429..892f9ad8 100644 --- a/azure/modules/custom-data/variables.tf +++ b/azure/modules/custom-data/variables.tf @@ -22,8 +22,8 @@ variable "scanner_version" { type = string default = "0.11" validation { - condition = can(regex("^[0-9]+\\.[0-9]+$", var.scanner_version)) - error_message = "The scanner version must be in the format of X.Y" + condition = can(regex("^[0-9]+\\.[0-9]+", var.scanner_version)) + error_message = "The scanner version must start with a number, followed by a period and a number (X.Y)" } } diff --git a/azure/variables.tf b/azure/variables.tf index d9f7a613..545af690 100644 --- a/azure/variables.tf +++ b/azure/variables.tf @@ -72,8 +72,8 @@ variable "scanner_version" { type = string default = "0.11" validation { - condition = can(regex("^[0-9]+\\.[0-9]+$", var.scanner_version)) - error_message = "The scanner version must be in the format of X.Y" + condition = can(regex("^[0-9]+\\.[0-9]+", var.scanner_version)) + error_message = "The scanner version must start with a number, followed by a period and a number (X.Y)" } }