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

Fix @mention recognition in Townsquare #6485

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

sebastiantf
Copy link
Contributor

Description

The existing regex to identify @mentions was also identifying the same that could occur in URLs like from medium: https://medium.com/@shevski/how-decentralised-are-you-a6539eeb27ff

The regex has been modified to correctly identify intended @mentions and not those in URLs.

Refers/Fixes

Fixes #6298

Testing

Original input to status update:

@shevski @shevski @shevski

Although the article is published over one year ago. It’s a must read for anyone involved in tech related businesses. https://medium.com/@shevski/how-decentralised-are-you-a6539eeb27ff

Before:

Screenshot 2020-04-22 at 1 15 39 AM

Also see: #6298 (comment)

After:

Screenshot 2020-04-22 at 1 16 07 AM

@thelostone-mc thelostone-mc merged commit 0b05dd7 into gitcoinco:master Apr 22, 2020
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.

Townsquare feed should recognize links
3 participants