Skip to content

Commit

Permalink
Add "ea" to the list of pre-release identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
fthomas committed Oct 11, 2021
1 parent 55a5ed0 commit c37133f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ object Version {
def isPreReleaseIdent: Boolean = order < 0
def order: Int =
value.toUpperCase match {
case "SNAP" | "SNAPSHOT" | "NIGHTLY" => -5
case "ALPHA" | "PREVIEW" => -4
case "BETA" | "B" => -3
case "SNAP" | "SNAPSHOT" | "NIGHTLY" => -6
case "ALPHA" | "PREVIEW" => -5
case "BETA" | "B" => -4
case "EA" /* early access */ => -3
case "M" | "MILESTONE" | "AM" => -2
case "RC" => -1
case _ => 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ class VersionTest extends DisciplineSuite {
List("1.0.0-20201208-143052-2c1b1172"),
Some("1.0.0-20201208-143052-2c1b1172")
),
("0.27.0-RC1", List("0.27.0-bin-20200826-2e58a66-NIGHTLY"), None)
("0.27.0-RC1", List("0.27.0-bin-20200826-2e58a66-NIGHTLY"), None),
("17.0.0.1", List("18-ea+4"), None)
)

val rnd = new Random()
Expand Down

0 comments on commit c37133f

Please sign in to comment.