Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed "raw mentions" not being clickable with special characters appended to them #2212

Merged
merged 5 commits into from Nov 22, 2020
Merged

Fixed "raw mentions" not being clickable with special characters appended to them #2212

merged 5 commits into from Nov 22, 2020

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented Nov 21, 2020

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Made "raw-mentions" consistent with @mentions in setting bold usernames and being able display usercard by clicking. To achieve that, I added a second, simple regex; similar to mentionRegex.

https://cdn.zneix.eu/2LdNrGt.png
https://cdn.zneix.eu/q8Hh5mh.png

I also decided to add colon to special characters that will not have influence on not resolving usercard, because many chatters often use "Copy full message" from message context menu and paste that in chat, which has format similar to 13:37 zneix: message xd and it is pretty convenient to have it resolve to mention as well.

Many chat users often use "Copy full message" from message context menu and paste that in chat, which has format similar to "13:37 zneix: message xd" and it is pretty convinent to have it resolve to mention as well.
@zneix zneix changed the title Fixed "raw mentions" not being clickable with special characters being appended Fixed "raw mentions" not being clickable with special characters appended to them Nov 21, 2020
@pajlada pajlada merged commit b79d5fa into Chatterino:master Nov 22, 2020
@zneix zneix deleted the all-usernames-mentions-link branch November 22, 2020 13:47
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.

None yet

2 participants