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

minimessage: Ignore invalid tags when parsing #723

Merged
merged 5 commits into from Mar 5, 2022

Conversation

rymiel
Copy link
Member

@rymiel rymiel commented Mar 3, 2022

As of #717, these would cause a parse error, but they should just be outputted literally, as to not break on arbitrary input

Note: pretty ugly fix, adding a second tag checker helper and using a pretty magical children-traversing method, but i didn't want to resort to a try-catch, please advise if something like that would be better

Renames the previous one to emphasize that it throws.
Previously, these would cause a parse error, but they should just be
outputted literally
As cursed as it is, it would have been valid before
@kashike kashike added this to the 4.10.1 milestone Mar 3, 2022
@zml2008 zml2008 self-assigned this Mar 5, 2022
@zml2008 zml2008 enabled auto-merge March 5, 2022 02:58
@zml2008 zml2008 merged commit b267964 into main/4 Mar 5, 2022
@zml2008 zml2008 deleted the fix/invalid-tag-parsing branch March 5, 2022 03:05
This was referenced Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants