Skip to content

Commit

Permalink
Merge pull request #101 from aternosorg/class-loader-names
Browse files Browse the repository at this point in the history
Add support for class loaders in report level parsing
  • Loading branch information
JulianVennen authored Jan 14, 2025
2 parents d0ef1a0 + fb7f702 commit 99f8fe1
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 99f8fe1

Please sign in to comment.