Skip to content

Commit

Permalink
fix: environment variable name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mdubourg001 authored May 21, 2021
2 parents c6f3319 + 54bb283 commit f4afef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function readdirRecSync(dir, files, parent, projectFiles = []) {
}

function replaceEnvironmentVariables(string, env) {
const regexp = new RegExp("(\\$[A-Z]+_?[A-Z]+)", "gm");
const regexp = new RegExp("(\\$[A-Za-z0-9_]+)", "gm");
const matches = string.match(regexp) ?? [];

let replaced = string;
Expand Down

0 comments on commit f4afef4

Please sign in to comment.