Skip to content

Commit e2c3a30

Browse files
committed
fix tfvars.mjs to use replace with regex instead of replaceAll for node 14 in some cloud shell
1 parent 9e26c63 commit e2c3a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tfvars.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async function devopsTFvars() {
147147

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

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

153153
try {

0 commit comments

Comments
 (0)