Gets the file extension from a given URL.
If the URL is empty or undefined.
The URL to extract the file extension from.
The file extension, or an empty string if no extension is found.
Gets the file extension from a given URL.
Throws
If the URL is empty or undefined.