diff --git a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt index b6d60302a..7594fb181 100644 --- a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt +++ b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/Version.kt @@ -33,7 +33,7 @@ data class Version(val value: String) : Comparable { matches("beta") -> StabilityLevel.Beta matches("eap") -> StabilityLevel.EarlyAccessProgram matches("M", requireNumber = true) -> StabilityLevel.Milestone - matches("RC") -> StabilityLevel.ReleaseCandidate + matches("RC") || matches("CR") -> StabilityLevel.ReleaseCandidate isDefinitelyStable(this) -> StabilityLevel.Stable else -> null } diff --git a/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt b/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt index d450ad50c..550263acc 100644 --- a/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt +++ b/plugins/core/src/test/resources/versions-stability-level/ReleaseCandidate.txt @@ -28,3 +28,10 @@ 4.8.0.201705170830-rc1 5.0.0.201805221745-rc1 5.0.0.201805301535-rc2 + +// org.hibernate.orm +6.0.0.CR1 +6.0.0.CR2 +6.2.0.CR1 +6.2.0.CR2 +6.2.0.CR3