Skip to content

Commit

Permalink
Add support for class loaders in report level parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Dec 30, 2024
1 parent 874a5d1 commit fb7f702
Show file tree
Hide file tree
Showing 4 changed files with 1,331 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser/ReportParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ReportParser extends \Aternos\Codex\Parser\Parser

const PATTERN = [
self::LEVEL_WARNING => ["/\s*WARNING: .*$/"],
self::LEVEL_STACKTRACE => ["/^\s+at \S+\(.+\)$/", "/^(?:Caused by: )?[a-z]+\.(?:\w+\.?)+: .*$/", "/^\\tat [a-z]+\..*$/"],
self::LEVEL_STACKTRACE => ["/^\s+at (?:\w+\/+)?\S+\(.+\)$/", "/^(?:Caused by: )?[a-z]+\.(?:\w+\.?)+: .*$/", "/^\\tat [a-z]+\..*$/"],
self::LEVEL_INFO => ["/^([^|:]+:) .+$/", "/^(\w+:)$/", "/^(\\t[^:.]+:)$/"],
self::LEVEL_TITLE => ["/^-{2,4} .* -{2,4}$/"],
self::LEVEL_COMMENT => ["/\/\/.*$/"],
Expand Down Expand Up @@ -53,4 +53,4 @@ public function parse(): void
}
}
}
}
}
Loading

0 comments on commit fb7f702

Please sign in to comment.