Skip to content

fix: use horizontal whitespace in switch_picker test filters#1987

Merged
max-sixty merged 1 commit intomainfrom
fix-test-filter-newlines
Apr 7, 2026
Merged

fix: use horizontal whitespace in switch_picker test filters#1987
max-sixty merged 1 commit intomainfrom
fix-test-filter-newlines

Conversation

@max-sixty
Copy link
Copy Markdown
Owner

Same fix as #1981\s*$ in Rust regex matches newlines, so add_filter patterns ending with \s*$ can consume trailing \n and collapse blank line separators in insta inline snapshots. Changed to [ \t]*$ in the two remaining instances in switch_picker.rs.

This was written by Claude Code on behalf of @max-sixty

`\s*$` in Rust regex matches newlines, which can consume trailing `\n`
and collapse blank line separators in insta inline snapshots. Use
`[ \t]*$` to match only horizontal whitespace, consistent with the
same fix applied in config_state.rs (#1981).

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit 9504ef1 into main Apr 7, 2026
25 checks passed
@max-sixty max-sixty deleted the fix-test-filter-newlines branch April 7, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants