source: trip-planner-front/node_modules/urix/index.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 291 bytes
Line 
1// Copyright 2014 Simon Lydell
2// X11 (“MIT”) Licensed. (See LICENSE.)
3
4var path = require("path")
5
6"use strict"
7
8function urix(aPath) {
9 if (path.sep === "\\") {
10 return aPath
11 .replace(/\\/g, "/")
12 .replace(/^[a-z]:\/?/i, "/")
13 }
14 return aPath
15}
16
17module.exports = urix
Note: See TracBrowser for help on using the repository browser.