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

Function getDetails

github-actions/browserstack/set-browserstack-env.js:20634–20644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20632 return '""';
20633 }
20634 if (!arg.includes(" ") && !arg.includes(" ") && !arg.includes('"')) {
20635 return arg;
20636 }
20637 if (!arg.includes('"') && !arg.includes("\\")) {
20638 return `"${arg}"`;
20639 }
20640 let reverse = '"';
20641 let quoteHit = true;
20642 for (let i = arg.length; i > 0; i--) {
20643 reverse += arg[i - 1];
20644 if (quoteHit && arg[i - 1] === "\\") {
20645 reverse += "\\";
20646 } else if (arg[i - 1] === '"') {
20647 quoteHit = true;

Callers

nothing calls this directly

Calls 4

__awaiter6Function · 0.70
getWindowsInfoFunction · 0.70
getMacOsInfoFunction · 0.70
getLinuxInfoFunction · 0.70

Tested by

no test coverage detected