get-first-url-from-string
v1.0.3
Published
Return the 1st url in a given input text
Downloads
61
Readme
get-first-url-from-string
Import the function, pass in a string.
The response will always be a string, either containing the 1st HTTPS URL it found or just an empty string.
No dependencies, see an improvement on the regex pattern, PRs are welcomed :)
For examples, please see the unit tests.