extractUrlFromText(Defined in: src/Utils/messages.ts:90 Uses a regex to test whether the string contains a URL, and returns the URL if it does.text):undefined|string
Parameters
text
string
eg. hello https://google.com
Returns
undefined | string
the URL, eg. https://google.com