Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle odd numbers of NodeFilters to be configured #389

Merged
merged 3 commits into from
Dec 28, 2023

Conversation

stevehill1981
Copy link
Contributor

The previous method of merging the results from the NodeFilter instances was breaking because Ruby was treating it as a series of 2-element arrays.

If you had 0, 1 or 2 node filters configured, it would work fine; if you added a third, it would break with an ArgumentError. Adding a fourth makes it work again.

Fixes #388

stevehill1981 and others added 3 commits December 28, 2023 16:16
The previous method of merging the results from the NodeFilter instances was breaking because Ruby was treating it as a series of 2-element arrays.

If you had 0, 1 or 2 node filters configured, it would work fine; if you added a third, it would break with an `ArgumentError`. Adding a fourth makes it work again.

Fixes gjtorikian#388
@gjtorikian
Copy link
Owner

Gah, thanks. for catching this, and the fix! Will go out as 3.0.1.

@gjtorikian gjtorikian merged commit 62b4aaa into gjtorikian:main Dec 28, 2023
3 checks passed
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.

Bug in specification of node filters in v3.0.0
2 participants