From d50b36c4af50bf5fe7b5c909cbcd9eaaf4190995 Mon Sep 17 00:00:00 2001 From: Saksham Sharma Date: Tue, 24 Sep 2024 15:02:32 +0530 Subject: [PATCH] remove regex check in log search --- sumologic/resource_sumologic_log_search.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sumologic/resource_sumologic_log_search.go b/sumologic/resource_sumologic_log_search.go index b956fb0e..6e00c06d 100644 --- a/sumologic/resource_sumologic_log_search.go +++ b/sumologic/resource_sumologic_log_search.go @@ -1,9 +1,7 @@ package sumologic import ( - "fmt" "log" - "regexp" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" @@ -11,8 +9,6 @@ import ( func resourceSumologicLogSearch() *schema.Resource { - nameRegex := `^[a-zA-Z0-9 +%\-@.,_()]+$` - return &schema.Resource{ Create: resourceSumologicLogSearchCreate, Read: resourceSumologicLogSearchRead, @@ -28,7 +24,6 @@ func resourceSumologicLogSearch() *schema.Resource { Required: true, ValidateFunc: validation.All( validation.StringLenBetween(1, 255), - validation.StringMatch(regexp.MustCompile(nameRegex), fmt.Sprintf("Must match regex %s", nameRegex)), ), }, "description": {