remaxjs / remax
1 1
export function slash(path: string) {
2 1
  if (!path) {
3 0
    return path;
4
  }
5 1
  return /^\\\\\?\\/.test(path) ? path : path.replace(/\\/g, `/`);
6
}

Read our documentation on viewing source code .

Loading