RocketChat / Rocket.Chat

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

[BUG] AutoLinker with Regular Expressions does not work #15802

Open thepowerprocess opened 4 years ago

thepowerprocess commented 4 years ago

Description:

Updating the 'AutoLinker URL Regular Expression' field under Administration > Messages > AutoLinker while AutoLinker is enabled and all other AutoLinker settings set to false has no effect on converting text into hyperlinks.

Steps to reproduce:

  1. Go to Administration > Messages > AutoLinker
  2. Set 'Enable' to True and set all other settings in the AutoLinker panel to False
  3. Leaving the 'AutoLinker URL Regular Expression field' as it's default (://|www\.).+ or change it to something like https://google.com
  4. Save changes
  5. Post a message like https://google.com

Expected behavior:

The text that satisfies the regular expression turns into a hyperlink.

Actual behavior:

The text that satisfies the regular expression does not become a hyperlink.

Server Setup Information:

Client Setup Information

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kendrickluong commented 4 years ago

This is still occurring in 3.3.3

ubergeekzone commented 4 years ago

the same issue still in 3.7.0-develop #18786

veron-33 commented 2 years ago

Still in 4.8.1. Please fix

evgen66rus commented 2 years ago

5.0.1 it works for URLs like: https://google.com but does not for URLs like: https://google:8080 (got emoji "confused") even though the second URL matches default regexp fyi: "Convert ASCII to emoji" is disabled, but I get emoji though