Skip to content

Commit

Permalink
fixed template symbols in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Chubatiuk committed Sep 28, 2023
1 parent b51b1ff commit e78b16f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ var (
)
tmplStart = getenv("TEMPLATE_START", "{{")
tmplEnd = getenv("TEMPLATE_END", "}}")
reEnvironmentPlaceholders = regexp.MustCompile(fmt.Sprintf("%s.+?%s", tmplStart, tmplEnd))
reEnvironmentPlaceholders = regexp.MustCompile(
fmt.Sprintf(
"%s.+?%s",
regexp.QuoteMeta(tmplStart),
regexp.QuoteMeta(tmplEnd),
),
)
)

func init() {
Expand Down

0 comments on commit e78b16f

Please sign in to comment.