mirror of
https://github.com/conorbronsdon/avoid-ai-writing.git
synced 2026-09-19 01:32:11 +08:00
9a83f231b5
The finditer fix shipped in #114 without a test that can fail — a reversion to first-match-only scanning would stay green and quietly undercount. One assertion closes it: a two-ref line must report 2 hits. Verified: intact script passes; mutating scan_line to first-match-only fails with "expected 2 hits on a two-ref line, got ['scripts/check-style.js']". Co-authored-by: Claude Fable 5 <noreply@anthropic.com>