CfParser.substituteEnvVars
private
string substituteEnvVars(string s) @safeSubstitutes `${...}` references in string content.
Supports ${VAR}, ${VAR:-default} and ${VAR:?message} using the configured envReader; expansions are capped by MAX_ENV_EXPANSION_SIZE.
Parameters
s | The unquoted string content |
Returns
The content with references substituted.
Throws
CfParseException on unset required variables or over-sized
expansions.