Open kubarskii opened 1 year ago
When message contains link, chat should automatically wrap it into
<a href="<link from the message>">Link from the message</a>
Possible solution for finding links:
const re = /([^\"=]{2}|^)((https?|ftp):\/\/\S+[^\s.,> )\];'\"!?])/; const subst = '$1<a href="$2" target="_blank">$2</a>'; const withlink = textownstr.replace(re, subst);
When message contains link, chat should automatically wrap it into
Possible solution for finding links: