source: trip-planner-front/node_modules/urix/index.js@ 76712b2

Last change on this file since 76712b2 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.