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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user