joni1802 / ts3-manager

A modern web interface for maintaining Teamspeak3 servers
https://www.ts3.app
MIT License
189 stars 23 forks source link

Fixed display of spacers containing square brackets #91

Closed Uggah closed 1 year ago

Uggah commented 1 year ago

Hey,

I really enjoy using the ts3-manager to manage my teamspeak servers.

However, it has always bugged me that my AFK Channel isn't properly displayed because its name contains square brackets and it is configured as a spacer ("[cspacer]").

I managed to fix it with a small adjustment in how the text of a spacer is generated. Now, using a regular expression, it just uses all text after the first occurrence of a closing square bracket. Here are the results:

Before: image

After: image

I hope you find this contribution useful. Thanks for the work!

Best regards Uggah

joni1802 commented 1 year ago

Looks good. Will test it tomorrow and then do the merge. Thanks.