Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Feb 10, 2025
1 parent 696f1b6 commit dc3cd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public boolean next() {
break;
} else {
if (c >= '0' && c <= '9') { // only ASCII digits
int digit = Character.digit(c, 10);
int digit = c - '0';
if (state == -1) {
end = index;
terminatedByNumber = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void testUnlimitedNumberOfDigitsInNumericComponent() {
}

@Test
void testTransitionFromDigitToLetterAndViceVersaIsEqualivantToDelimiter() {
void testTransitionFromDigitToLetterAndViceVersaIsEquivalentToDelimiter() {
assertOrder(X_EQ_Y, "1alpha10", "1.alpha.10");
assertOrder(X_EQ_Y, "1alpha10", "1-alpha-10");

Expand Down

0 comments on commit dc3cd86

Please sign in to comment.