Skip to content

Commit

Permalink
use regexcache
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Nam authored and Sharon Nam committed Jul 2, 2024
1 parent d3e6000 commit 51547bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/service/cloudformation/stack_set_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"context"
"fmt"
"log"
"regexp"
"slices"
"strings"
"time"
Expand Down Expand Up @@ -110,7 +109,7 @@ func resourceStackSetInstance() *schema.Resource {
ForceNew: true,
Optional: true,
ConflictsWith: []string{names.AttrAccountID},
ValidateFunc: validation.StringMatch(regexp.MustCompile(`(s3://|http(s?)://).+`), ""),
ValidateFunc: validation.StringMatch(regexache.MustCompile(`(s3://|http(s?)://).+`), ""),
},
},
},
Expand Down

0 comments on commit 51547bf

Please sign in to comment.