From e2c3a304587c290e211a425e0a6f46e5b99cefd2 Mon Sep 17 00:00:00 2001 From: Victor Martin Date: Fri, 8 Mar 2024 12:53:57 +0100 Subject: [PATCH] fix tfvars.mjs to use replace with regex instead of replaceAll for node 14 in some cloud shell --- scripts/tfvars.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tfvars.mjs b/scripts/tfvars.mjs index 3f48efc..7c64013 100644 --- a/scripts/tfvars.mjs +++ b/scripts/tfvars.mjs @@ -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 {