If the url doesn't match the regex, null will be returned. I would add an ``` || []``` at the end of this line to guard against this case (just in case devs pass in an invalid URL).