RoyDefined / WebDoomer

WebDoomer is a fast and efficient Zandronum and QZandronum server browser as a web app.
GNU General Public License v3.0
4 stars 0 forks source link

Some player names are not properly parsed #27

Open RoyDefined opened 6 months ago

RoyDefined commented 6 months ago

Describe the bug The parser that sanitizes player names and optionally gives them a color appears to not work correctly and sometimes leave excess characters.

Steps to reproduce N/A

Expected behavior The player names are correctly parsed.

Screenshots N/A

Additional context Below is a list of names of players as they come in, and how they are shown by WebDoomer. First line is the JSON string, second line is parsed content, last line is expected content.

"\\cQS\\cdeafra \\c\\c\\cgB\\cilaz\\cge \\cqY\\cdeage\\cqr\\c- \\ch[Speire]\\c- +*\\c-",
Seafra cBlaze Yeager [Speire] +*
Seafra Blaze Yeager [Speire] +*
"\\c[g5]\\c[b5]\\c\\c\\c[g1]smash man x\\c-"
csmash man x
smash man x