Skip to content

Commit

Permalink
properly check words with word connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
codokie committed Apr 25, 2024
1 parent a6906e2 commit 21e4c1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public int getEndOfWord(final CharSequence sequence, final int fromIndex) {
}
while (index < length) {
final int codePoint = Character.codePointAt(sequence, index);
if (mSpacingAndPunctuations.isWordSeparator(codePoint)) {
if (mSpacingAndPunctuations.isWordSeparator(codePoint) || mSpacingAndPunctuations.isWordConnector(codePoint)) {
return index;
}
index += Character.charCount(codePoint);
Expand Down

0 comments on commit 21e4c1e

Please sign in to comment.