Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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

Development

Successfully merging this pull request may close these issues.

Codex Minecraft does not detect Forge 1.16.5 log as client log, because it is too long and the Regexes are inefficient

4 participants