diff --git a/cli/cmd/cluster.go b/cli/cmd/cluster.go index 133ae81de8..f863236eee 100644 --- a/cli/cmd/cluster.go +++ b/cli/cmd/cluster.go @@ -70,7 +70,7 @@ var ( _flagClusterDownKeepVolumes bool ) -var _eksctlPrefixRegex = regexp.MustCompile(`^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[.+] {2}`) +var _eksctlPrefixRegex = regexp.MustCompile(`^.*[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[.+] {2}`) func clusterInit() { _clusterUpCmd.Flags().SortFlags = false diff --git a/pkg/lib/strings/operations_test.go b/pkg/lib/strings/operations_test.go index 158ba695f3..a9b954dc2e 100644 --- a/pkg/lib/strings/operations_test.go +++ b/pkg/lib/strings/operations_test.go @@ -75,7 +75,7 @@ func TestRemoveDuplicates(t *testing.T) { }, { name: "eksctl", - prefixRegex: regexp.MustCompile(`^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[.+] {2}`), + prefixRegex: regexp.MustCompile(`^.*[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} \[.+] {2}`), input: []string{ "2021-03-26 00:03:50 [ℹ] eksctl version 0.40.0", "2021-03-26 00:03:50 [ℹ] using region us-east-1",