1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-10 22:00:05 +00:00

fix: modify the reqgex to handle the loginForm response on latest sas9

This commit is contained in:
2023-03-22 23:33:42 +05:00
parent 01af5eb634
commit 17a3d1b8a9
3 changed files with 15 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
export const isLogInRequired = (response: string): boolean => {
const pattern: RegExp = /<form.+action="(.*Logon[^"]*).*>/gm
const pattern: RegExp = /<form.+action="(.*(Logon)|(login)[^"]*).*>/gm
const matches = pattern.test(response)
return matches
}