Skip to content

Commit 23ab6ff

Browse files
committed
Add new sanitazing to verification of stacktraces
Now stacktraces have additional substrings, separated by a slash: java-base/java.util.lang They are stripped away. Also, the placement of tabs has changed, and so the tabs are also completely removed.
1 parent 471c444 commit 23ab6ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kotlinx-coroutines-debug/test/StracktraceUtils.kt

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public fun String.trimStackTrace(): String =
1111
trimIndent()
1212
.replace(Regex(":[0-9]+"), "")
1313
.replace(Regex("#[0-9]+"), "")
14+
.replace(Regex("(?<=\tat )[^\n]*/"), "")
15+
.replace(Regex("\t"), "")
1416
.applyBackspace()
1517

1618
public fun String.applyBackspace(): String {

0 commit comments

Comments
 (0)