diff --git a/src/scrapers/otsar-hahayal.ts b/src/scrapers/otsar-hahayal.ts index a5fa7a52..7522c58c 100644 --- a/src/scrapers/otsar-hahayal.ts +++ b/src/scrapers/otsar-hahayal.ts @@ -29,7 +29,7 @@ interface ScrapedTransaction { function getPossibleLoginResults(page: Page) { const urls: PossibleLoginResults = {}; - urls[LoginResults.Success] = [`${BASE_URL}/wps/myportal/FibiMenu/Online`]; + urls[LoginResults.Success] = [new RegExp(`^${BASE_URL.replace('.', '\\.')}/wps/myportal/FibiMenu/Online`)]; urls[LoginResults.InvalidPassword] = [() => elementPresentOnPage(page, '#validationMsg')]; // TODO: support change password /* urls[LOGIN_RESULT.CHANGE_PASSWORD] = [``]; */