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

First Username Mention in Reply Tweets is Not Properly Linked #91

Open
EthanC opened this issue Apr 7, 2023 · 1 comment
Open

First Username Mention in Reply Tweets is Not Properly Linked #91

EthanC opened this issue Apr 7, 2023 · 1 comment

Comments

@EthanC
Copy link

EthanC commented Apr 7, 2023

With USERNAME_LINK set to true (default), the first occurrence of a username mention in a reply Tweet will not be properly formatted as a markdown link, as expected. See the following examples...

https://twitter.com/SHGames/status/1644076930319392772

image

 

https://twitter.com/InfinityWard/status/1644093882911670274

image

@EthanC
Copy link
Author

EthanC commented Apr 10, 2023

Issue appears to affect hashtags as well.

https://twitter.com/COD_Esports/status/1645471968613761038

image

thebetauser added a commit to thebetauser/discord-twitter-webhooks that referenced this issue May 15, 2023
Updated @ username regex for better handling of usernames

Fixes issue TheLovinator1#91
thebetauser added a commit to thebetauser/discord-twitter-webhooks that referenced this issue Jun 1, 2023
Updated regex for @ usernames. 

This change will limit usernames to 15 characters which is the twitter username character limit and fixes the issue of not detecting usernames in tweets if the first character of a tweet isn't a whitespace.

Fixes issues TheLovinator1#91
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

No branches or pull requests

1 participant