Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix update-tracker regex repalce

Francis Cao53557f00b49a
diff --git a/scripts/update-tracker.js b/scripts/update-tracker.js
index fdec11dc0..5c36ec52d 100644
--- a/scripts/update-tracker.js
+++ b/scripts/update-tracker.js
@@ -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}.`);
}