Skip to content

Commit

Permalink
update regex to capature comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Feb 9, 2023
1 parent 9a22975 commit a685ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/packages/cmd/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func generateExampleEnv(cmd *cobra.Command, args []string) {
listOfKeyValue := []string{}

for _, secret := range secretDetails.Secrets {
re := regexp.MustCompile(`(.*)DEFAULT:(.*)`)
re := regexp.MustCompile(`(?s)(.*)DEFAULT:(.*)`)
match := re.FindStringSubmatch(secret.Comment)
defaultValue := ""
comment := secret.Comment
Expand Down

0 comments on commit a685ac3

Please sign in to comment.