Skip to content

Commit 3069581

Browse files
committed
fix Scala version number handling for 2.13 community build
we need to handle a Scala version like `2.13.0-pre-5e84129`, as we see in nightly builds before bincompat is locked down
1 parent 0a7ed0e commit 3069581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scala/scala/async/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ package object async {
6464
}
6565

6666
def scalaBinaryVersion: String = {
67-
val PreReleasePattern = """.*-(M|RC).*""".r
67+
val PreReleasePattern = """.*-(M|RC|pre-).*""".r
6868
val Pattern = """(\d+\.\d+)\..*""".r
6969
val SnapshotPattern = """(\d+\.\d+\.\d+)-\d+-\d+-.*""".r
7070
scala.util.Properties.versionNumberString match {

0 commit comments

Comments
 (0)