diff --git a/cmd/fleetctl/convert.go b/cmd/fleetctl/convert.go index ded58664a3..aefc489ae8 100644 --- a/cmd/fleetctl/convert.go +++ b/cmd/fleetctl/convert.go @@ -104,7 +104,7 @@ func convertCommand() cli.Command { // valid JSON but osquery accepts them) and replace // with \n so that we get them in the YAML output where // they are allowed. - re := regexp.MustCompile(`\W*\\\n`) + re := regexp.MustCompile(`\s*\\\n`) b = re.ReplaceAll(b, []byte(`\n`)) var specs *specGroup