Skip to content

Commit

Permalink
Fix CrossVersion pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
scala-steward-for-moia[bot] authored May 16, 2022
1 parent 760f08c commit 86de53e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://scalameta.org/scalafmt/docs/configuration.html
version = "3.5.2"
version = "3.5.3"
runner.dialect = scala213source3
preset = defaultWithAlign
align.preset = most
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lazy val root = project
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => scalacOptions_2_12
case Some((2, 13)) => scalacOptions_2_13
case _ => Seq()
case _ => Seq()
}
},
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0")),
Expand Down Expand Up @@ -78,7 +78,7 @@ lazy val scalacOptions_2_13 = Seq(
"-Xsource:3"
)

lazy val sbtVersionRegex = "v([0-9]+.[0-9]+.[0-9]+)-?(.*)?".r
lazy val sbtVersionRegex = "v(\\d+.\\d+.\\d+)-?(.*)?".r

lazy val sbtGitSettings = Seq(
git.useGitDescribe := true,
Expand Down

0 comments on commit 86de53e

Please sign in to comment.