Skip to content

Allow empty parens in a string to be safely parsed#122

Draft
dkinzer wants to merge 1 commit intomainfrom
handle-empty-parens
Draft

Allow empty parens in a string to be safely parsed#122
dkinzer wants to merge 1 commit intomainfrom
handle-empty-parens

Conversation

@dkinzer
Copy link
Copy Markdown
Member

@dkinzer dkinzer commented Oct 5, 2022

This change allows an empty set of parens, (), to be in a string and to be parsed as a token. Prior to this change, and empty set of parens would be parsed as a list with no contents which could not be successfully parsed, but instead results in a error as described in #101.

This change fixes issue #101.

This is originally some work by @bibliotechy in this PR which I merged without rebasing and it had issues that needed to be fixed before it could be merged: #112

@dkinzer dkinzer force-pushed the handle-empty-parens branch from 17973c3 to c4a228c Compare October 5, 2022 19:56
@dkinzer dkinzer marked this pull request as draft October 6, 2022 13:54
@dkinzer
Copy link
Copy Markdown
Member Author

dkinzer commented Oct 6, 2022

I cannot reproduce the issue locally using ruby version 3.1.2p20. I think this error is CI specific issue.

This change allows an empty set of parens, `()`, to be in a string and to be parsed as a token. Prior to this change, and empty set of parens would be parsed as a list with no contents which could not be successfully parsed, but instead results in a error as described in #101.

This change fixes issue #101.
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