Skip to content

Commit

Permalink
fix(template): do not replace words starting with .Env
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Dec 29, 2021
1 parent c1a95f4 commit e2a907e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2a907e

Please sign in to comment.