From a5f4b57f41be0bbf4479ccc0ff57cd913074b4cc Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Sat, 16 Sep 2023 11:16:20 +0000 Subject: [PATCH] Fixed regex --- sources/cloudfront/distribution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/cloudfront/distribution.go b/sources/cloudfront/distribution.go index ea0368fd..83354c3b 100644 --- a/sources/cloudfront/distribution.go +++ b/sources/cloudfront/distribution.go @@ -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)