We need this to replace * with a placeholder in the hostname so that the URL can be parsed by the URL() constructor.
*
We need this to replace
*with a placeholder in the hostname so that the URL can be parsed by the URL() constructor.