File size: 257 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 |
/**
* 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, '/')
}
|