remove extra double quotes from replace.

This commit is contained in:
Francis Cao 2024-03-05 17:43:20 -08:00
parent 53557f00b4
commit efeade2125

View File

@ -10,7 +10,7 @@ if (endPoint) {
const tracker = fs.readFileSync(file);
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `"${endPoint}"`));
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `${endPoint}`));
console.log(`Updated tracker endpoint: ${endPoint}.`);
}