fix(template): do not replace words starting with .Env

This commit is contained in:
Jan De Dobbeleer 2021-12-28 20:29:41 +01:00 committed by Jan De Dobbeleer
parent c1a95f42c7
commit e2a907e121

View file

@ -50,7 +50,7 @@ func (t *textTemplate) render() (string, error) {
if err != nil {
return "", errors.New(invalidTemplate)
}
if strings.Contains(t.Template, ".Env") {
if strings.Contains(t.Template, ".Env.") {
t.loadEnvVars()
}
buffer := new(bytes.Buffer)