(label)
| 535 | function 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'), |
no outgoing calls
no test coverage detected