diff --git a/config.go b/config.go index 30b9fdd6..4c071568 100644 --- a/config.go +++ b/config.go @@ -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() {