From b88f516410972b337730f8348490597bf067b9fb Mon Sep 17 00:00:00 2001 From: kerwin612 Date: Tue, 29 Oct 2024 07:53:57 +0800 Subject: [PATCH] Fixed lint error --- jetbrains-gateway/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetbrains-gateway/main.tf b/jetbrains-gateway/main.tf index 917cfe5e..2c4e8962 100644 --- a/jetbrains-gateway/main.tf +++ b/jetbrains-gateway/main.tf @@ -151,7 +151,7 @@ variable "releases_base_link" { description = "" default = "https://data.services.jetbrains.com" validation { - condition = can(regex("^(https?:\/\/)?[0-9a-zA-Z]+\.[-_0-9a-zA-Z]+\.[0-9a-zA-Z]+$", var.releases_base_link)) + condition = can(regex("^https?://.*$", var.releases_base_link)) error_message = "The releases_base_link must be a valid HTTP/S address." } } @@ -161,7 +161,7 @@ variable "download_base_link" { description = "" default = "https://download.jetbrains.com" validation { - condition = can(regex("^(https?:\/\/)?[0-9a-zA-Z]+\.[-_0-9a-zA-Z]+\.[0-9a-zA-Z]+$", var.download_base_link)) + condition = can(regex("^https?://.*$", var.download_base_link)) error_message = "The download_base_link must be a valid HTTP/S address." } }