Files
stack/agents/researcher/work/queue-102/bidi-count.mjs
T
jason.woltjeandClaude Sonnet 5.5 486c4aad34 research: row 102 build packet, row 88 follow-up N1-N4 (#1596)
Header sentence, line 13 wrap, bidi escapes in three files, inertCheck U+200E/U+200F. Patch and evidence only; the change is not applied to the tree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-13 16:12:24 -05:00

8 lines
373 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { readFileSync } from 'node:fs';
const BIDI = /[؜‎‏‪-‮⁦-⁩]/gu;
for (const f of process.argv.slice(2)) {
const t = readFileSync(f, 'utf8');
const hits = [...t.matchAll(BIDI)].map((m) => `${t.slice(0, m.index).split('\n').length}:U+${m[0].codePointAt(0).toString(16).toUpperCase().padStart(4, '0')}`);
console.log(f, hits.length, hits.join(' '));
}