MCPcopy Create free account
hub / github.com/microsoft/Webwright / parseExitCode

Function parseExitCode

assets/compare_trajectory/app.js:93–96  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

91}
92
93function parseExitCode(text) {
94 const match = String(text || '').match(/(?:Return code:|Process exited with code|<exited with exit code)\s*(-?\d+)/i);
95 return match ? Number(match[1]) : null;
96}
97
98function parseSessionId(text) {
99 const match = String(text || '').match(/session(?:\s+ID)?\s+(\d+)/i);

Callers 3

normalizeObservationFunction · 0.85
parseSessionToolSectionFunction · 0.85
normalizeCodexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected