Skip to content

Commit

Permalink
Fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Sep 16, 2023
1 parent 9e1e2c8 commit a5f4b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/cloudfront/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/overmindtech/sdp-go"
)

var s3DnsRegex = regexp.MustCompile(`([^\.]+)\.s3\.([^\.]+).amazonaws.com`)
var s3DnsRegex = regexp.MustCompile(`([^\.]+)\.s3\.([^\.]+)\.amazonaws\.com`)

func distributionGetFunc(ctx context.Context, client CloudFrontClient, scope string, input *cloudfront.GetDistributionInput) (*sdp.Item, error) {
out, err := client.GetDistribution(ctx, input)
Expand Down

0 comments on commit a5f4b57

Please sign in to comment.