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]>
8 lines
373 B
JavaScript
8 lines
373 B
JavaScript
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(' '));
|
||
}
|