Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
291 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // Copyright 2014 Simon Lydell
|
---|
| 2 | // X11 (“MIT”) Licensed. (See LICENSE.)
|
---|
| 3 |
|
---|
| 4 | var path = require("path")
|
---|
| 5 |
|
---|
| 6 | "use strict"
|
---|
| 7 |
|
---|
| 8 | function urix(aPath) {
|
---|
| 9 | if (path.sep === "\\") {
|
---|
| 10 | return aPath
|
---|
| 11 | .replace(/\\/g, "/")
|
---|
| 12 | .replace(/^[a-z]:\/?/i, "/")
|
---|
| 13 | }
|
---|
| 14 | return aPath
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | module.exports = urix
|
---|
Note:
See
TracBrowser
for help on using the repository browser.