Skip to content

Commit

Permalink
Fix bug in prerelease version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
G00fY2 committed Jan 2, 2022
1 parent 5fa3874 commit 4b7c13e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ static long preReleaseVersion(@NotNull final String suffix, final ReleaseType re
return 0;
}

private static int indexOfQualifier(@NotNull final String suffix, final ReleaseType releaseType) {
private static int indexOfQualifier(@NotNull String suffix, final ReleaseType releaseType) {
suffix = suffix.toLowerCase();
switch (releaseType) {
case RC:
return suffix.indexOf(RC_STRING) + RC_STRING.length();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static Collection<Object[]> data() {
{"1.2beta33", "1.2-4beta3"},
{"1.2beta33", "1.2-44beta32"},
{"1-beta3", "1-alpha4"},
{"12.4.5-RC12", "12.4.5-rc11"},
{"10", "9"},
{"2", "jgfa9"},
{"2.1-alpha", "jgfa9-beta"},
Expand Down

0 comments on commit 4b7c13e

Please sign in to comment.