From 978ea3967629801ad574d42214704a09a02feeb8 Mon Sep 17 00:00:00 2001 From: Eric Peters Date: Sat, 19 Oct 2019 21:01:03 -0700 Subject: [PATCH] Make the script version regex test more windows-friendly --- integration-test/src/test/scala/RunnerTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-test/src/test/scala/RunnerTest.scala b/integration-test/src/test/scala/RunnerTest.scala index 659c06406..d810f9475 100755 --- a/integration-test/src/test/scala/RunnerTest.scala +++ b/integration-test/src/test/scala/RunnerTest.scala @@ -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))