Skip to content

Commit

Permalink
remove regex check in log search
Browse files Browse the repository at this point in the history
  • Loading branch information
ssharma-sumologic committed Sep 24, 2024
1 parent e88fcd8 commit d50b36c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sumologic/resource_sumologic_log_search.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package sumologic

import (
"fmt"
"log"
"regexp"

"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)

func resourceSumologicLogSearch() *schema.Resource {

nameRegex := `^[a-zA-Z0-9 +%\-@.,_()]+$`

return &schema.Resource{
Create: resourceSumologicLogSearchCreate,
Read: resourceSumologicLogSearchRead,
Expand All @@ -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": {
Expand Down

0 comments on commit d50b36c

Please sign in to comment.