MCPcopy Index your code
hub / github.com/devcontainers/cli / resolveString

Function resolveString

src/spec-common/variableSubstitution.ts:76–79  ·  view source on GitHub ↗
(replace: Replace, value: string)

Source from the content-addressed store, hash-verified

74}
75
76function resolveString(replace: Replace, value: string): string {
77 // loop through all variables occurrences in 'value'
78 return value.replace(VARIABLE_REGEXP, evaluateSingleVariable.bind(undefined, replace));
79}
80
81function evaluateSingleVariable(replace: Replace, match: string, variable: string): string {
82

Callers 2

substituteFunction · 0.85
substitute0Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected