Fixed clean always resulting in <redacted>
This commit is contained in:
parent
952f2e5237
commit
e66f45ba0f
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ export async function clean(text) {
|
||||||
const imageServers = JSON.parse(fs.readFileSync("./servers.json", { encoding: "utf8" })).image;
|
const imageServers = JSON.parse(fs.readFileSync("./servers.json", { encoding: "utf8" })).image;
|
||||||
|
|
||||||
for (const { server, auth } of imageServers) {
|
for (const { server, auth } of imageServers) {
|
||||||
text = optionalReplace(server);
|
text = text.replaceAll(server, optionalReplace(server));
|
||||||
text = optionalReplace(auth);
|
text = text.replaceAll(auth, optionalReplace(auth));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const env of Object.keys(parsed)) {
|
for (const env of Object.keys(parsed)) {
|
||||||
|
|
Loading…
Reference in a new issue