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

Arrays::getOpenClose(): efficiency fix - only accept array open tokens #406

Merged
merged 1 commit into from
Dec 18, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 18, 2022

The Arrays::getOpenClose() method only handled array open tokens, but accepted both open as well as close tokens. This meant that for array close tokens, the method would not bow out early, while it should have.

Fixed now. Includes some additional tests.

The `Arrays::getOpenClose()` method only _handled_ array open tokens, but _accepted_ both open as well as close tokens.
This meant that for array close tokens, the method would not bow out early, while it should have.

Fixed now. Includes some additional tests.
@jrfnl jrfnl force-pushed the arrays/getopenclose-only-accept-openers branch from 19a8e3a to f655b41 Compare December 18, 2022 11:56
@jrfnl jrfnl enabled auto-merge December 18, 2022 12:01
@jrfnl jrfnl merged commit 425abc3 into develop Dec 18, 2022
@jrfnl jrfnl deleted the arrays/getopenclose-only-accept-openers branch December 18, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant