Skip to content

Commit

Permalink
fix: 🐛 Replaced named capture group for compatibility reasons (kolpla…
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanObrink authored Apr 12, 2021
1 parent fd919a0 commit 66b23fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 66b23fa

Please sign in to comment.