mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-04 00:14:55 +08:00
Skip and warn when interpolating strings and theres a unclosed bracket #2083
This commit is contained in:
@@ -102,7 +102,8 @@ func interpolate(d *dataTreeNavigator, context Context, str string) (string, err
|
||||
}
|
||||
}
|
||||
if inExpression {
|
||||
return "", fmt.Errorf("unclosed interpolation string \\(")
|
||||
log.Warning("unclosed interpolation string, skipping interpolation")
|
||||
return str, nil
|
||||
}
|
||||
return sb.String(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user