From 5e3b74a63a5ba111518ff7318ac08bbabf840743 Mon Sep 17 00:00:00 2001 From: Timo Salmi Date: Fri, 12 Jul 2024 17:26:06 -0400 Subject: [PATCH] fix(sbt): Filter out garbage from sbt projects command Signed-off-by: Timo Salmi --- plugins/package-managers/sbt/src/main/kotlin/Sbt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/sbt/src/main/kotlin/Sbt.kt b/plugins/package-managers/sbt/src/main/kotlin/Sbt.kt index c635fa8b79a6f..263b5c053fdce 100644 --- a/plugins/package-managers/sbt/src/main/kotlin/Sbt.kt +++ b/plugins/package-managers/sbt/src/main/kotlin/Sbt.kt @@ -210,7 +210,7 @@ class Sbt( private const val SBT_VERSION_PATTERN = "\\d(\\.\\d+){2}(-\\w+)?" private val VERSION_REGEX = Regex("\\[info]\\s+($SBT_VERSION_PATTERN)") -private val PROJECT_REGEX = Regex("\\[info] \t [ *] (.+)") +private val PROJECT_REGEX = Regex("\\[info] \t [ *] (\\S+)") private val POM_REGEX = Regex("\\[info] Wrote (.+\\.pom)") // Batch mode (which suppresses interactive prompts) is not supported on Windows, compare