fix update-tracker regex repalce

This commit is contained in:
Francis Cao 2024-03-05 17:22:38 -08:00
parent 55f7d776e6
commit 53557f00b4

View File

@ -10,10 +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}.`);
}