You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
308 B

4 years ago
  1. // Copyright 2014 Simon Lydell
  2. // X11 (“MIT”) Licensed. (See LICENSE.)
  3. var path = require("path")
  4. "use strict"
  5. function urix(aPath) {
  6. if (path.sep === "\\") {
  7. return aPath
  8. .replace(/\\/g, "/")
  9. .replace(/^[a-z]:\/?/i, "/")
  10. }
  11. return aPath
  12. }
  13. module.exports = urix