Skip to content

Fix #68: device row is no longer mistaken for a section header - #74

Merged
REPPL merged 1 commit into
mainfrom
fix-68-header-confusion
Aug 27, 2026
Merged

Fix #68: device row is no longer mistaken for a section header#74
REPPL merged 1 commit into
mainfrom
fix-68-header-confusion

Conversation

@REPPL

@REPPL REPPL commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Validated against main: the header switch in parseAVDevices ran a whole-line strings.Contains before the device regex, so a crafted device name containing a header phrase dropped its own row and flipped the section (regression test added first — it fails on main with USB audio CODEC misfiled under video, exactly as the issue describes).

Fix: run the [N]-indexed deviceLine regex first; only a line that is not a device row can switch sections. CHANGELOG entry added.

Fixes #68

parseAVDevices ran the section-header Contains test first, so a device
whose OS-supplied name contains "AVFoundation audio/video devices:" had
its row dropped and the section flipped, misclassifying every device
after it — a false no-microphone abort, or a shadowing virtual driver
hidden from the roster that exists to expose it. The [N] index, which a
real header line never carries, now decides: the deviceLine regex runs
first and only a non-device line can switch sections.

Fixes #68.

Assisted-by: Claude:claude-fable-5
@REPPL
REPPL merged commit dfbd702 into main Aug 27, 2026
6 checks passed
@REPPL
REPPL deleted the fix-68-header-confusion branch August 27, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant