MCPcopy Create free account
hub / github.com/foxcpp/maddy / removeUnexpandedEnvvars

Function removeUnexpandedEnvvars

framework/cfgparser/env.go:51–54  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

49var unixEnvvarRe = regexp.MustCompile(`{env:([^\$]+)}`)
50
51func removeUnexpandedEnvvars(s string) string {
52 s = unixEnvvarRe.ReplaceAllString(s, "")
53 return s
54}
55
56func buildEnvReplacer() *strings.Replacer {
57 env := os.Environ()

Callers 1

expandEnvironmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected