-
Notifications
You must be signed in to change notification settings - Fork 239
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
Link parsing issue #268
Comments
Wow, interesting, thanks for the report! Will look into this |
Also https://guest:Zedb58w6HGRFQr86@new.cwinfo.fi/barcode.png?s=qr&c=https%3A%2F%2Fguest%3A7FLiz996Xy2wkVTS%40new.cwinfo.fi%2F this link doesnt work in Rocket Chat THIS IS JUST EXAMPLE NOT REAL PASSWORD INTENTIONALLY |
Any updates to this? 👀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wasn't exactly sure what to title this... There's an issue with autolinker when it thinks there is a phone number, or something, inside of a link. It seems to happen only if there is something that looks like a phone number...twice?
Returns:
Notice the second HREF mid-link, and the A tag ending early.
If you remove the first phone number, it parses fine.
I found this from pasting an Amazon link into a rocket.chat conversation. The amazon link parsed weird. RocketChat/Rocket.Chat#13731
At first, I thought it might be an issue with Rocket.Chat, but I tracked it down to this autolinker library.
Also, this affects the truncate display as well.
Test for yourself at http://greg-jacobs.com/Autolinker.js/examples/index.html
Paste in:
https://test.com/testing/dp/1-nonumber-test?refId=8F6FS9NHT1Z61S6Z1DFQ2563917-4730-11e9-9fed-6f308a1afb98&test_0=true&test_1=true&test_2=true
The text was updated successfully, but these errors were encountered: