Skip to content

Commit

Permalink
minor fix: trim env_key when interpolating variables
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev authored and Heulitig committed Feb 16, 2024
1 parent cdda10c commit 4b1daea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastn-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ pub(crate) async fn interpolate_env_vars(
let end = capture.end();
result.push_str(&endpoint[last_end..start]);

let key = captures.get(1).unwrap().as_str();
let key = captures.get(1).unwrap().as_str().trim();

let value = match key {
key if key.starts_with("env.") => {
Expand Down

0 comments on commit 4b1daea

Please sign in to comment.