5 lines
174 B
TypeScript
5 lines
174 B
TypeScript
|
|
export function extractSessionIdFromOutput(output: string): string {
|
||
|
|
const match = output.match(/Session ID:\s*(ses_[a-zA-Z0-9]+)/)
|
||
|
|
return match?.[1] ?? "<session_id>"
|
||
|
|
}
|