/* 详列 scan-escapes 命中的上下文,用于人工判定是否真损坏 用法:node .sre-s23/scan-detail.js
/ 区域内 */
let inPre = false;
lines.forEach((ln, i) => {
const opens = (ln.match(/]/g) || []).length;
const closes = (ln.match(/<\/pre>/g) || []).length;
const wasIn = inPre;
if (opens) inPre = true;
const here = wasIn || inPre;
if (closes) inPre = false;
if (!here) return;
for (const m of ln.matchAll(/(? console.log(l)); if (out.length > 60) console.log(` … 另 ${out.length - 60} 处`); }
else console.log(`\n✓ ${name} 无命中`);
}