替换 replaceAll 方法
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -32,3 +32,5 @@ HELP.md
|
||||
/node_modules/
|
||||
/.vuepress/dist/
|
||||
/docs/
|
||||
|
||||
__v3.md
|
||||
@ -121,8 +121,8 @@ docker push ${this.privateRegistry}/questdb:6.0.4
|
||||
resultYaml () {
|
||||
let result = ''
|
||||
if (typeof window !== 'undefined') {
|
||||
result = this.originalYaml.replaceAll('eipwork/', this.privateRegistry + '/')
|
||||
result = result.replaceAll('questdb/', this.privateRegistry + '/')
|
||||
result = this.originalYaml.replace(/eipwork\//g, this.privateRegistry + '/')
|
||||
result = result.replaceAll(/questdb\//g, this.privateRegistry + '/')
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user