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

Handle invalid regex pattern in ExprJoinSplit #7202

Open
wants to merge 3 commits into
base: dev/patch
Choose a base branch
from

Conversation

UnderscoreTud
Copy link
Member

Description

This PR fixes a bug where an exception was thrown when compiling an invalid regex pattern. It also adds an error when an invalid regex pattern with a literal string. As well as optimizing splitting with a literal pattern by compiling and caching the pattern at initiation rather than with every evaluation.


Target Minecraft Versions: any
Requirements: none
Related Issues: #7159

@UnderscoreTud UnderscoreTud added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Nov 8, 2024
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
@Moderocky Moderocky added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants