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

Already on GitHub? Sign in to your account

Strange auto-linking behaviour on invalid length @usernames #49

wants to merge 2 commits into


None yet
1 participant

I think it's strange behaviour to auto-link prefixes of invalid length usernames. For example a tweet containing @username9012345678901 would become <a href="https://twitter.com/username901234567890">username901234567890</a>1.

I saw this happen in the wild and thought it looked broken. The tweet links to something that user didn't expect it to.

weird auto link behaviour on usernames

Cameron Hunter added some commits Dec 7, 2012

Cameron Hunter It's strange to autolink the @username when it is longer than a valid…
… @username. From a user perspective it appears broken, e.g. https://twitter.com/thebolditalic/status/277095860372918272
Cameron Hunter Same issue with invalid list names. We should just autolink the usern…
…ame (if valid). Autolinking a prefix of something known to be invalid is weird.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment