fix: 🐛 Replaced named capture group for compatibility reasons (#112)

This commit is contained in:
Johan Öbrink 2021-04-12 13:18:31 +02:00 committed by GitHub
parent fd919a0b5e
commit 66b23faf43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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="(?<saml>\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 {