mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 02:45:22 -08:00
fix(java-junit): stack trace line can start with whitespaces
Fixes #208
This commit is contained in:
@@ -6,7 +6,7 @@ export interface StackTraceElement {
|
||||
|
||||
// simple format:
|
||||
// at <FULLY_QUALIFIED_METHOD_NAME>(<FILE_NAME>:<LINE_NUMBER>)
|
||||
const re = /^at (.*)\((.*):(\d+)\)$/
|
||||
const re = /^\s*at (.*)\((.*):(\d+)\)$/
|
||||
|
||||
export function parseStackTraceElement(stackTraceLine: string): StackTraceElement | undefined {
|
||||
const match = stackTraceLine.match(re)
|
||||
|
||||
Reference in New Issue
Block a user