url
Contains a utility function for validating URLs.
Functions
Section titled “Functions”| Function | Description |
|---|---|
| isFileUrl | Determines whether a given string is a file:// URL. |
| isUrl | Determines whether a given string is a valid URL |
| normalizeFileUrl | Normalizes a file:// URL to a pretty form by converting backslashes to forward slashes. The URL is expected to already be decoded. Non-file:// URLs are returned unchanged. |