Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Arrays::getOpenClose(): efficiency fix - only accept array open tokens
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.
- Loading branch information
Showing
2 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters