Skip to content

Commit ec71891

Browse files
authored
Merge pull request #20 from oracle-devrel/node14-replaceall-issue
fix tfvars.mjs to use replace with regex instead of replaceAll
2 parents 9e26c63 + e2c3a30 commit ec71891

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)