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

Ensure only non-root nodes are marked as terminal #63

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

gonzedge
Copy link
Owner

@gonzedge gonzedge commented Feb 20, 2024

Turns out calling #add with an empty string in either Container or Nodes::Raw currently results in marking the root node as terminal, which is not the expected behavior. This PR fixes that by checking root? before calling terminal!.

@gonzedge gonzedge force-pushed the ensure-root-is-never-terminal branch from 9b59924 to 9cfbf75 Compare February 20, 2024 03:01
@gonzedge gonzedge marked this pull request as ready for review February 20, 2024 03:08
@gonzedge gonzedge merged commit bd54656 into main Feb 20, 2024
33 of 36 checks passed
@gonzedge gonzedge deleted the ensure-root-is-never-terminal branch February 20, 2024 03:08
gonzedge added a commit that referenced this pull request Feb 20, 2024
gonzedge added a commit that referenced this pull request Feb 20, 2024
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