refactor: refactor E2E auth helper and mail parsing logic

This commit is contained in:
ramvignesh-b
2026-04-28 19:54:22 +05:30
parent df73fb6b6a
commit f2a1abe7eb
3 changed files with 8 additions and 10 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ export const MailpitHelper = {
);
const details = await detailRes.json();
const body = details.HTML || details.Text || "";
const match = body.match(/https?:\/\/\S+activate\/\S+/);
const body = details.Text || "";
const match = body.match(/https?:\/\/\S*activate\S*/);
if (match) return match[0];
}