Extracts a filename from a URL. Falls back to a regex match (and finally the original string) when the URL cannot be parsed by the URL constructor.
URL
The filename, or the original input if none can be derived.
URL to extract the filename from.
Generated using TypeDoc
Extracts a filename from a URL. Falls back to a regex match (and finally the original string) when the URL cannot be parsed by the
URLconstructor.Returns
The filename, or the original input if none can be derived.