forked from LaconicNetwork/kompose
Skip docs workflow
This commit is contained in:
@@ -114,11 +114,11 @@ func unquoteHelmTemplates(yamlBytes []byte) []byte {
|
||||
// that enclose the entire value (after the colon for YAML)
|
||||
if idx := strings.Index(line, ": "); idx != -1 {
|
||||
prefix := line[:idx+2] // Keep "key: "
|
||||
value := line[idx+2:] // Get the value part
|
||||
value := line[idx+2:] // Get the value part
|
||||
|
||||
// Remove surrounding quotes from value if present
|
||||
if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) ||
|
||||
(strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) {
|
||||
(strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) {
|
||||
value = value[1 : len(value)-1]
|
||||
}
|
||||
lines[i] = prefix + value
|
||||
|
||||
Reference in New Issue
Block a user