We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118b4ca commit e0432ecCopy full SHA for e0432ec
pkg/config/vars.go
@@ -3,10 +3,13 @@ package config
3
import (
4
"bytes"
5
"encoding/json"
6
+ "regexp"
7
8
plugin_util "github.com/outblocks/outblocks-plugin-go/util"
9
)
10
11
+var quoteValues = regexp.MustCompile(`(\s*-\s+|\S:\s+)(\$\{var\.[^}]+})`)
12
+
13
type YAMLEvaluator struct {
14
*plugin_util.BaseVarEvaluator
15
}
@@ -21,7 +24,9 @@ func NewYAMLEvaluator(vars map[string]interface{}) *YAMLEvaluator {
21
24
22
25
23
26
func (e *YAMLEvaluator) Expand(input []byte) ([]byte, error) {
27
+ input = quoteValues.ReplaceAll(input, []byte(`$1"$2"`))
28
format, _, err := e.ExpandRaw(input)
29
30
return format, err
31
32
0 commit comments