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 nth/2 to emit empty on index out of range #2674

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Jul 9, 2023

This PR fixes nth/2 to emit empty on index out of range. nth(10; 1,2,3) should not emit 3. Fixes #1867.

@itchyny itchyny added the bug label Jul 9, 2023
@nicowilliams nicowilliams merged commit d807256 into jqlang:master Jul 9, 2023
15 checks passed
@nicowilliams
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nth/2 semantic is strange
2 participants