From 66b23faf4392c942467334664d32a57be72e9758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20=C3=96brink?= Date: Mon, 12 Apr 2021 13:18:31 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Replaced=20named=20captur?= =?UTF-8?q?e=20group=20for=20compatibility=20reasons=20(#112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api.ts b/lib/api.ts index 66325f76..abe63b0f 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -450,7 +450,7 @@ export class Api extends EventEmitter { }) const response = await this.fetch('samlResponse', url, session) const text = await response.text() - const samlResponse = /name="SAMLResponse" value="(?\S+)">/gm.exec(text)?.groups?.saml + const samlResponse = /name="SAMLResponse" value="(\S+)">/gm.exec(text)?.[1] if (!samlResponse) { throw new Error('Could not parse SAML Response') } else {