You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix selection-filter panics when no test is supplied #22
select, reject, selectattr, and rejectattr support using truthiness when no explicit test is supplied. Those calls can currently panic while extracting optional test arguments.
The implementation slices past the available arguments before the default truthiness behaviour gets a chance to run.
I’m raising a small PR to check the argument count before slicing and use an empty argument list when no additional test arguments are present. Explicit tests and their arguments will continue to pass through unchanged.
I’ll attach the PR here shortly, with regression tests for all four default-test forms.
Resolved in #34 and published in v1.11.0, with corresponding regression tests covering the reported problem. Thank you, @qoke, for the report and suggested solution.
Activity
ardan-bkennedy commentedon Oct 26, 2026
Resolved in #34 and published in v1.11.0, with corresponding regression tests covering the reported problem. Thank you, @qoke, for the report and suggested solution.