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

Function getMacOsInfo

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

Source from the content-addressed store, hash-verified

20605 for (const char of arg) {
20606 if (cmdSpecialChars.some((x) => x === char)) {
20607 needsQuotes = true;
20608 break;
20609 }
20610 }
20611 if (!needsQuotes) {
20612 return arg;
20613 }
20614 let reverse = '"';
20615 let quoteHit = true;
20616 for (let i = arg.length; i > 0; i--) {
20617 reverse += arg[i - 1];
20618 if (quoteHit && arg[i - 1] === "\\") {
20619 reverse += "\\";
20620 } else if (arg[i - 1] === '"') {
20621 quoteHit = true;

Callers 1

getDetailsFunction · 0.70

Calls 3

__awaiter6Function · 0.70
getExecOutputFunction · 0.70
matchMethod · 0.45

Tested by

no test coverage detected