We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d1657 commit 3f14e62Copy full SHA for 3f14e62
config/src/config.rs
@@ -90,10 +90,7 @@ impl Config {
90
}
91
92
fn substitute_env_vars(content: String) -> String {
93
- let re = Regex::new(r"\$\{([A-Z_][A-Z0-9_]*)\}")
94
- .map_err(|e| e.to_string())
95
- .expect("error substituting values");
96
-
+ let re = Regex::new(r"\$\{([A-Z_][A-Z0-9_]*)\}").expect("error substituting values");
97
let result = re.replace_all(&content, |caps: ®ex::Captures| {
98
let var_name = &caps[1];
99
// only substitues the value if the env variable is found else the same is kept
0 commit comments