// pagecheck: syntax-check the embedded quota page JS (guards against // parse-time SyntaxErrors like duplicate const that break the whole page). const fs = require("fs"); const src = fs.readFileSync("plugin/quota_page.go", "utf8"); const m = src.match(/const QuotaPageHTML = `([\s\S]*)`/); if (!m) { console.error("pagecheck: QuotaPageHTML not found"); process.exit(1); } const js = [...m[1].matchAll(/