MCPcopy Create free account
hub / github.com/jetify-com/devbox / searchEnv

Function searchEnv

internal/patchpkg/search.go:77–85  ·  view source on GitHub ↗
(re *regexp.Regexp)

Source from the content-addressed store, hash-verified

75})
76
77func searchEnv(re *regexp.Regexp) string {
78 for _, env := range envValues() {
79 match := re.FindString(env)
80 if match != "" {
81 return match
82 }
83 }
84 return ""
85}
86
87// searchGlobs iterates over the paths matched by multiple [filepath.Glob]
88// patterns. It will not yield a path more than once, even if the path matches

Callers 1

findRemovedRefsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected