MCPcopy Create free account
hub / github.com/angular/dev-infra / normalizeSeparators

Function normalizeSeparators

github-actions/saucelabs/set-saucelabs-env.js:19943–19950  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

19941 });
19942 }
19943 function normalizeSeparators(p) {
19944 p = p || "";
19945 if (IS_WINDOWS) {
19946 p = p.replace(/\//g, "\\");
19947 return p.replace(/\\\\+/g, "\\");
19948 }
19949 return p.replace(/\/\/+/g, "/");
19950 }
19951 function isUnixExecutable(stats) {
19952 return (stats.mode & 1) > 0 || (stats.mode & 8) > 0 && process.getgid !== void 0 && stats.gid === process.getgid() || (stats.mode & 64) > 0 && process.getuid !== void 0 && stats.uid === process.getuid();
19953 }

Callers 1

isRootedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected