Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
2.04k stars 449 forks source link

Match @usernames surrounded by parentheses (and maybe more symbols) #5354

Open x9136 opened 5 months ago

x9136 commented 5 months ago

Checklist

Describe your issue

Screenshot 2024-04-22 at 18 29 36

I have these settings enabled, but I get this result:

Screenshot 2024-04-22 at 18 28 20

I expect this result (everything is bold except for the parentheses):

(b1az3rs) b1az3rs (@b1az3rs) @b1az3rs

It seems like a bug, although I'm not sure.

I suggest bolding usernames regardless of the symbols around. This is useful when events with several participants take place: people create commands for bots and write a list of participants in the parentheses using @. Currently, some nicknames will be non-clickable in such cases (the first one and the last one).

Screenshots

No response

OS and Chatterino Version

Chatterino 2.5.0 (commit 3aead093 modified) built with Qt 6.5.0 Running on macOS 14.4, kernel: 23.4.0