Skip to content

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

Merged
jrfnl merged 1 commit into
developfrom
arrays/getopenclose-only-accept-openers
Dec 18, 2022
Merged

Arrays::getOpenClose(): efficiency fix - only accept array open tokens#406
jrfnl merged 1 commit into
developfrom
arrays/getopenclose-only-accept-openers

Conversation

@jrfnl

@jrfnl jrfnl commented Dec 18, 2022

Copy link
Copy Markdown
Member

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

Development

Successfully merging this pull request may close these issues.

1 participant