Skip to content

fix kit placeholders with in_match / bracket kit names - #208

Merged
Devlrxxh merged 1 commit into
Solara-Development:masterfrom
GreenArrowlol:fix/kit-placeholder-parse
Nov 13, 2026
Merged

Devlrxxh merged 1 commit into
Solara-Development:masterfrom
GreenArrowlol:fix/kit-placeholder-parse

Conversation

@GreenArrowlol

@GreenArrowlol GreenArrowlol commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

found this while building a queue menu with the kit placeholders

the kit regex is greedy on the kit name, so %neptune_kit_Sumo_in_match% gets read as kit Sumo_in + type match and the placeholder comes back as raw text. queued works only because it has no underscore. kit names with brackets (like Sumo(Bestof3)) also never matched since ( ) arent in the kit charset

now it tries the known types first (the ones in the switch), so the kit name ends where a real type starts, and brackets are allowed in the kit name. if that doesnt match it falls back to the old pattern so anything that parsed before still parses the same

checked these against it:

placeholder before after
kit_Sumo_in_match Sumo_in / match Sumo / in_match
kit_in_match in / match (current kit) / in_match
kit_Sumo(Bestof3)_queued no match Sumo(Bestof3) / queued
kit_My_Kit_best_win_streak My_Kit_best_win / streak My_Kit / best_win_streak
kit_SwordPvP_queued SwordPvP / queued same
kit_wins (current kit) / wins same

builds fine on master 0e1f74b

@Devlrxxh
Devlrxxh merged commit 3895010 into Solara-Development:master Nov 13, 2026
1 check passed
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.

2 participants