mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 00:26:24 +00:00
update regex to capature comment
This commit is contained in:
@@ -474,7 +474,7 @@ func generateExampleEnv(cmd *cobra.Command, args []string) {
|
|||||||
listOfKeyValue := []string{}
|
listOfKeyValue := []string{}
|
||||||
|
|
||||||
for _, secret := range secretDetails.Secrets {
|
for _, secret := range secretDetails.Secrets {
|
||||||
re := regexp.MustCompile(`(.*)DEFAULT:(.*)`)
|
re := regexp.MustCompile(`(?s)(.*)DEFAULT:(.*)`)
|
||||||
match := re.FindStringSubmatch(secret.Comment)
|
match := re.FindStringSubmatch(secret.Comment)
|
||||||
defaultValue := ""
|
defaultValue := ""
|
||||||
comment := secret.Comment
|
comment := secret.Comment
|
||||||
|
|||||||
Reference in New Issue
Block a user