1.0.3 • Published 3 years ago
get-first-url-from-string v1.0.3
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.