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.
Import:
import { normalizeFileUrl } from 'obsidian-dev-utils/url';Signature:
function normalizeFileUrl(url: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
url | string | The URL to normalize. |
Returns: string — The normalized URL.