codex-minecraft
codex-minecraft copied to clipboard
Use MultiPatternDetector for all client logs and crash reports
This PR replaces all occurrences of SinglePatternDetector with MultiPatternDetector to get rid of one long, complex and inefficient regular expression and replace it with two regular expressions that are easier to read, understand and (hopefully) faster to parse.
This PR updates aternos/codex to 2.2.0 to use the new MultiPatternDetector introduced in https://github.com/aternosorg/codex/pull/21.
This PR also fixes #87 as we no longer use expressions like *(\n.*)*, so the regular expression parser should no longer encounter errors like JIT stack limit exhausted.
This PR also contains these changes:
- Add detection for client crash reports from Arclight: Add regex
Is Modded: Definitely; Client brand changed to 'arclight' - Remove old / unnecessary detection for client crash reports from Forge: Remove regex
/---- Minecraft Crash Report ----(\n.*)*\n\tFML:/m - Change regex to a more precise one for client crash reports from NeoForge: Use
/^\tNeoForge: net\.neoforged:/minstead of\tNeoForge:/m