Skip to content

Strict parsing for legacy converted placeholders#5740

Merged
JRoy merged 1 commit intoEssentialsX:2.xfrom
pop4959:parse-placeholders-strict
Mar 11, 2024
Merged

Strict parsing for legacy converted placeholders#5740
JRoy merged 1 commit intoEssentialsX:2.xfrom
pop4959:parse-placeholders-strict

Conversation

@pop4959
Copy link
Member

@pop4959 pop4959 commented Mar 11, 2024

This fixes issues where arguments converted implicitly from MiniMessage are prone to bleeding into the rest of the output.

The fix mostly works since MINI_MESSAGE_NO_TAGS is only used for legacy conversion, while miniMessageInstance is used in all other cases normally. If that were not the case, we would not want strict parsing everywhere since we don't enforce this in translations anyway.

Fixes #5729
Fixes #5730
Fixes #5732
Fixes #5735

Fixes #5720
Closes #5728

@pop4959 pop4959 added type: bugfix PRs that fix bugs in EssentialsX. module: main Issues or PRs for the main Essentials module misc: adventure Issues and PRs related to the Adventure refactor. Temporary label during 2.21.x cycle. labels Mar 11, 2024
@JRoy JRoy merged commit 2cb0af0 into EssentialsX:2.x Mar 11, 2024
HarvelsX pushed a commit to HarvelsX/Essentials that referenced this pull request Jun 2, 2024
This fixes issues where arguments converted implicitly from MiniMessage
are prone to bleeding into the rest of the output.

The fix mostly works since `MINI_MESSAGE_NO_TAGS` is only used for
legacy conversion, while `miniMessageInstance` is used in all other
cases normally. If that were not the case, we would not want strict
parsing everywhere since we don't enforce this in translations anyway.

Fixes EssentialsX#5729
Fixes EssentialsX#5730
Fixes EssentialsX#5732
Fixes EssentialsX#5735

Fixes EssentialsX#5720
Closes EssentialsX#5728
Starmism pushed a commit to valence-smp/Essentials that referenced this pull request Jan 8, 2025
This fixes issues where arguments converted implicitly from MiniMessage
are prone to bleeding into the rest of the output.

The fix mostly works since `MINI_MESSAGE_NO_TAGS` is only used for
legacy conversion, while `miniMessageInstance` is used in all other
cases normally. If that were not the case, we would not want strict
parsing everywhere since we don't enforce this in translations anyway.

Fixes EssentialsX#5729
Fixes EssentialsX#5730
Fixes EssentialsX#5732
Fixes EssentialsX#5735

Fixes EssentialsX#5720
Closes EssentialsX#5728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

misc: adventure Issues and PRs related to the Adventure refactor. Temporary label during 2.21.x cycle. module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

2 participants