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

Function readValue

assets/compare_trajectory/app.js:537–540  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

535function extractSessionMetadata(text) {
536 const source = String(text || '');
537 const readValue = (label) => {
538 const match = source.match(new RegExp('^> - \\*\\*' + label + ':\\*\\*\\s+(.+?)\\s*$', 'm'));
539 return match ? match[1].replace(/`/g, '').trim() : '';
540 };
541 return {
542 sessionId: readValue('Session ID'),
543 started: readValue('Started'),

Callers 1

extractSessionMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected