Skip to content

Commit b850a76

Browse files
remove the regex match in log search name
1 parent 971d6c2 commit b850a76

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

sumologic/resource_sumologic_log_search.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
package sumologic
22

33
import (
4-
"fmt"
54
"log"
6-
"regexp"
75

86
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
97
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
108
)
119

1210
func resourceSumologicLogSearch() *schema.Resource {
1311

14-
nameRegex := `^[a-zA-Z0-9 +%\-@.,_()]+$`
15-
1612
return &schema.Resource{
1713
Create: resourceSumologicLogSearchCreate,
1814
Read: resourceSumologicLogSearchRead,
@@ -28,7 +24,6 @@ func resourceSumologicLogSearch() *schema.Resource {
2824
Required: true,
2925
ValidateFunc: validation.All(
3026
validation.StringLenBetween(1, 255),
31-
validation.StringMatch(regexp.MustCompile(nameRegex), fmt.Sprintf("Must match regex %s", nameRegex)),
3227
),
3328
},
3429
"description": {

0 commit comments

Comments
 (0)