Make the script version regex test more windows-friendly

This commit is contained in:
Eric Peters 2019-10-19 21:01:03 -07:00
parent 5991e803af
commit 978ea39676
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ object SbtRunnerTest extends SimpleTestSuite with PowerAssertions {
test("sbt -V|-version|--version should print sbtVersion") {
val out = sbtProcessWithOpts("-version", "", "").!!.trim
val expectedVersion =
s"""|(?m)^sbt version in this project: $versionRegEx
s"""|(?m)^sbt version in this project: $versionRegEx(\\r)?
|sbt script version: $versionRegEx$$
|""".stripMargin.trim.replace("\n", "\\n")
assert(out.matches(expectedVersion))