Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MultiPatternDetector for all client logs and crash reports #88

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

pavog
Copy link
Member

@pavog pavog commented Sep 11, 2024

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 aternosorg/codex#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:/m instead of \tNeoForge:/m

@pavog pavog merged commit 0a1bf27 into master Oct 1, 2024
3 checks passed
@pavog pavog deleted the use-multi-pattern-detector branch October 1, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants