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

Fix trix not returning all values after generic-filehandle2 conversion #20

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

cmdcolin
Copy link
Contributor

@cmdcolin cmdcolin commented Mar 3, 2025

This is a one-liner fix

The oversight is that after generic-filehandle->generic-filehandle2 conversion, we needed to manually decode buffer to string (no automatic .toString() function)

but we only decoded the buffer once before the loop, while the buffer was still getting appended to while looking for more results

this PR decodes the buffer on each iteration of the loop

It adds a failing test case on main that works on this branch to prove it's utility

@cmdcolin cmdcolin merged commit 4b754ee into main Mar 3, 2025
1 check passed
@cmdcolin cmdcolin deleted the oneliner branch March 3, 2025 16:25
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.

1 participant