From e66f45ba0f26a3a3531e300837acdd1b177932af Mon Sep 17 00:00:00 2001 From: Essem Date: Sun, 26 Dec 2021 23:06:05 -0600 Subject: [PATCH] Fixed clean always resulting in --- utils/misc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/misc.js b/utils/misc.js index 8644f91..c176928 100644 --- a/utils/misc.js +++ b/utils/misc.js @@ -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)) {