UNPKG

hd-utils

Version:

A handy utils for modern JS developers

6 lines (5 loc) 252 B
/** * @description will extract all urls from a long string and return a list of the urls. * @example "Hello, visit me at www.example.com!" => ["www.example.com"] */ export default function extractUrlsFromString(str: string): RegExpMatchArray | [];