I have a simple chat app. When messages are rendered I am using regex to render urls as hyperlinks.
This is my JS code:
getText() { const ar