Skip to content

Text parsing fixes#8589

Open
APickledWalrus wants to merge 4 commits intodev/patchfrom
patch/text-component-parsing
Open

Text parsing fixes#8589
APickledWalrus wants to merge 4 commits intodev/patchfrom
patch/text-component-parsing

Conversation

@APickledWalrus
Copy link
Copy Markdown
Member

@APickledWalrus APickledWalrus commented Apr 24, 2026

Problem

There are several regressions introduced by the Adventure migration:

  • Double hashtag hex codes no longer work (<##123456>)
  • Escaping behavior is very inconsistent (escape characters for legacy formatting aren't removed during parsing)

Solution

My good friend Regular Expression has returned to bring order to the string parsing.

Unfortunately, MiniMessage does not accept tags with two leading ## so this has to be manually handled. It is done so similarly to multi world color tags (<dark red>).

I've also rewritten escaping and conversion of legacy codes/hex codes. The pattern makes it easier to handle escaped tags and adds better validation to what we convert.

Testing Completed

I added multiple JUnit regression tests.

Supporting Information


Completes:

@APickledWalrus APickledWalrus requested a review from a team as a code owner April 24, 2026 00:37
@APickledWalrus APickledWalrus requested review from Absolutionism and erenkarakal and removed request for a team April 24, 2026 00:37
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Apr 24, 2026
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Apr 24, 2026
@skriptlang-automation skriptlang-automation Bot removed the needs triage An issue that hasn't been classified or verified yet label Apr 24, 2026
@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.15 Releases Apr 24, 2026
@sovdeeth sovdeeth linked an issue Apr 24, 2026 that may be closed by this pull request
1 task
@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Merge in 2.15 Releases Apr 25, 2026
@skriptlang-automation skriptlang-automation Bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Apr 25, 2026
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

Status: Awaiting Merge

Development

Successfully merging this pull request may close these issues.

Error legacy formatting

3 participants