Front end of the Slack clone application.

123456789101112131415161718
  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