openpetswithchatandmcp/website/analyze-contents2.ts
OpenPets Dev 65ac83849e Add 'website/' from commit '966aea480ffe1c340553aa878def30131d2af827'
git-subtree-dir: website
git-subtree-mainline: 8d3849caea
git-subtree-split: 966aea480f
2026-06-17 20:48:39 +00:00

10 lines
442 B
TypeScript
Executable file

import * as fs from "fs";
const content = fs.readFileSync("C:/ScriptoriumAI/scriptoriumai-ui/src/__tests__/Runboard.telemetry-lockstep-parity.test.tsx", "utf8");
const matches = content.match(/it\([^]*?\}\)/g); // get all `it(...)` blocks.
if (matches) {
matches.sort((a,b) => b.length - a.length);
console.log("Longest `it` length:", matches[0].length);
console.log(matches[0].substring(0, 1000)); // Print start of longest
}