Skip to content

Commit

Permalink
fix tfvars.mjs to use replace with regex instead of replaceAll for no…
Browse files Browse the repository at this point in the history
…de 14 in some cloud shell
  • Loading branch information
vmleon committed Mar 8, 2024
1 parent 9e26c63 commit e2c3a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tfvars.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function devopsTFvars() {

const githubUser = githubURL.split("/").reverse()[1];

const githubURLEscaped = githubURL.replaceAll("/", "\\/");
const githubURLEscaped = githubURL.replace(/\//g, "\\/");
const replaceCmdURL = `s/GITHUB_REPOSITORY_URL/${githubURLEscaped}/`;

try {
Expand Down

0 comments on commit e2c3a30

Please sign in to comment.