Skip to content

Commit

Permalink
Merge pull request #450 from sideeffffect/patch-1
Browse files Browse the repository at this point in the history
Handle Dotty versions like 0.27.0-RC1
  • Loading branch information
tgodzik authored Jan 18, 2021
2 parents a543fdd + a0f56df commit a7e7952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdoc-sbt/src/main/scala/mdoc/MdocPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object MdocPlugin extends AutoPlugin {
}

def compatibleScalaVersion = Def.setting {
scalaVersion.value.split('.').take(3).map(_.toInt) match {
scalaVersion.value.takeWhile(_ != '-').split('.').take(3).map(_.toInt) match {
case Array(2, 12, minor) if minor <= 12 => BuildInfo.scala212Legacy
case _ => scalaBinaryVersion.value
}
Expand Down

0 comments on commit a7e7952

Please sign in to comment.