From d7a20225eb139176638c22e05e9d8286012dd903 Mon Sep 17 00:00:00 2001 From: Ioan Moldovan Date: Fri, 3 Jan 2025 12:30:52 +0200 Subject: [PATCH] fix: remove port check --- extension/js/common/core/common.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/extension/js/common/core/common.ts b/extension/js/common/core/common.ts index 6aac74e249f..dd06599e988 100644 --- a/extension/js/common/core/common.ts +++ b/extension/js/common/core/common.ts @@ -160,7 +160,6 @@ export class Str { if (email.includes(' ')) { return false; } - email = email.replace(new RegExp(`:${MOCK_PORT}$`), ''); // for MOCK tests, todo: remove from production // `localhost` is a valid top-level domain for an email address, otherwise we require a second-level domain to be present return /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|localhost|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i.test( email