diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/TestConfigurationBuilder.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/TestConfigurationBuilder.kt index 85a111dcdec..07d89e98e86 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/TestConfigurationBuilder.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/builders/TestConfigurationBuilder.kt @@ -72,7 +72,7 @@ class TestConfigurationBuilder { private fun String.toMatchingRegexString(): String = when (this) { "*" -> ".*" - else -> """^.*/${replace("*", ".*")}$""" + else -> """^.*/(${replace("*", ".*")})$""" } fun forTestsMatching(pattern: Regex, configuration: TestConfigurationBuilder.() -> Unit) {