RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.38k stars 10.49k forks source link

The link does not work when the second block of the URL starts with a number. #28215

Closed misafortune closed 1 year ago

misafortune commented 1 year ago

Description:

The link does not work when the second block of the URL starts with a number.

Steps to reproduce:

  1. Send the following by message.

http://3dconnexion.com/ http://www.3dconnexion.com/ https://3dconnexion.com/ https://www.3dconnexion.com/

Expected behavior:

All URLs will be linked.

Actual behavior:

Not linked only if the second block starts with a number.

Server Setup Information:

Client Setup Information

Additional context

Image files are attached. 3fef7f5a343134d00300eb0d32f7e3b6

Relevant logs:

{"level":20,"time":"2023-03-01T05:55:18.495Z","pid":93506,"hostname":"---","name":"OEmbed","msg":"Getting oembed metadata for 'https://3dconnexion.com/'"} {"level":20,"time":"2023-03-01T05:55:18.497Z","pid":93506,"hostname":"---","name":"OEmbed","msg":"Found oembed metadata in cache for 'https://3dconnexion.com/'"} {"level":20,"time":"2023-03-01T05:55:18.497Z","pid":93506,"hostname":"---","name":"OEmbed","msg":"Getting oembed metadata for 'https://www.3dconnexion.com/'"} {"level":20,"time":"2023-03-01T05:55:18.498Z","pid":93506,"hostname":"---","name":"OEmbed","msg":"Found oembed metadata in cache for 'https://www.3dconnexion.com/'"}

hugocostadev commented 1 year ago

Hi there, we made a change in our message-parser on how to indentify links and parse it properly and we fixed...

You can check in our latest release: https://github.com/RocketChat/Rocket.Chat/releases/tag/6.0.0-rc.3