Skip to content

Commit 99f8fe1

Browse files
authored
Merge pull request #101 from aternosorg/class-loader-names
Add support for class loaders in report level parsing
2 parents d0ef1a0 + fb7f702 commit 99f8fe1

File tree

4 files changed

+1331
-2
lines changed

4 files changed

+1331
-2
lines changed

src/Parser/ReportParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ReportParser extends \Aternos\Codex\Parser\Parser
2222

2323
const PATTERN = [
2424
self::LEVEL_WARNING => ["/\s*WARNING: .*$/"],
25-
self::LEVEL_STACKTRACE => ["/^\s+at \S+\(.+\)$/", "/^(?:Caused by: )?[a-z]+\.(?:\w+\.?)+: .*$/", "/^\\tat [a-z]+\..*$/"],
25+
self::LEVEL_STACKTRACE => ["/^\s+at (?:\w+\/+)?\S+\(.+\)$/", "/^(?:Caused by: )?[a-z]+\.(?:\w+\.?)+: .*$/", "/^\\tat [a-z]+\..*$/"],
2626
self::LEVEL_INFO => ["/^([^|:]+:) .+$/", "/^(\w+:)$/", "/^(\\t[^:.]+:)$/"],
2727
self::LEVEL_TITLE => ["/^-{2,4} .* -{2,4}$/"],
2828
self::LEVEL_COMMENT => ["/\/\/.*$/"],
@@ -53,4 +53,4 @@ public function parse(): void
5353
}
5454
}
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)