File: //proc/thread-self/root/tmp/dateweb_patch_noise3.cjs
const fs = require("fs");
const file = "scripts/growth-insights.mjs";
let s = fs.readFileSync(file, "utf8");
const anchor = "backup\\.(?:sql|zip)(?:\\/|$)";
const addition = "backup\\.(?:sql|zip)(?:\\/|$)|\\.azure(?:\\/|$)|docker-compose\\.ya?ml(?:\\/|$)|backup(?:\\/|$)|assets\\/css(?:\\/|$)";
if (!s.includes("docker-compose\\.ya?ml")) {
if (!s.includes(anchor)) throw new Error("noise3 anchor missing");
s = s.replace(anchor, addition);
}
fs.writeFileSync(file, s);