mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-09 21:30:05 +00:00
6 lines
197 B
TypeScript
6 lines
197 B
TypeScript
export const isLogInRequired = (response: string): boolean => {
|
|
const pattern: RegExp = /<form.+action="(.*(Logon)|(login)[^"]*).*>/gm
|
|
const matches = pattern.test(response)
|
|
return matches
|
|
}
|