silverwolf-x/project / packages /next /src /shared /lib /page-path /normalize-path-sep.ts
silverwolf-x's picture
download
raw
257 Bytes
/**
* For a given page path, this function ensures that there is no backslash
* escaping slashes in the path. Example:
* - `foo\/bar\/baz` -> `foo/bar/baz`
*/
export function normalizePathSep(path: string): string {
return path.replace(/\\/g, '/')
}

Xet Storage Details

Size:
257 Bytes
·
Xet hash:
f0e3cfd482ba7388235fd5be8f0a23b40603460a00a6eeb6da52faf118be5abd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.