Skip to content

Conversation

@goneall
Copy link
Member

@goneall goneall commented Jun 17, 2025

Returning true causes index out of bounds errors in other libraries.

Note: my previous analysis that it should return true was incorrect.

Copy link
Collaborator

@bact bact left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to update the Javadoc string too.

From:

A single token string is a string that contains zero or one token,

To something along this line:

A single token string contains exactly one token, no more, no less,

@bact bact added the bug Something isn't working label Jun 17, 2025
@goneall
Copy link
Member Author

goneall commented Jun 17, 2025

Good catch @bact - I updated the javadocs

@goneall goneall merged commit 2da26ac into master Jun 17, 2025
1 check passed
@bact bact deleted the singletoken branch June 18, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants