Fixed clean always resulting in <redacted>

This commit is contained in:
Essem 2021-12-26 23:06:05 -06:00
parent 952f2e5237
commit e66f45ba0f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -27,8 +27,8 @@ export async function clean(text) {
const imageServers = JSON.parse(fs.readFileSync("./servers.json", { encoding: "utf8" })).image;
for (const { server, auth } of imageServers) {
text = optionalReplace(server);
text = optionalReplace(auth);
text = text.replaceAll(server, optionalReplace(server));
text = text.replaceAll(auth, optionalReplace(auth));
}
for (const env of Object.keys(parsed)) {