mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 05:40:06 +00:00
feat(*): recreate package with new name
This commit is contained in:
5
src/utils/isLoginRequired.ts
Normal file
5
src/utils/isLoginRequired.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const isLogInRequired = (response: string): boolean => {
|
||||
const pattern: RegExp = /<form.+action="(.*Logon[^"]*).*>/gm;
|
||||
const matches = pattern.test(response);
|
||||
return matches;
|
||||
};
|
||||
Reference in New Issue
Block a user