From 6fbff4dcf127eaaaf790f0426287b6ec98bc2ec9 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 1 Feb 2024 06:49:39 +0000 Subject: [PATCH] Update email validation regex --- Common/Types/Email.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Types/Email.ts b/Common/Types/Email.ts index 7a8947a32a..e68a5bb48d 100644 --- a/Common/Types/Email.ts +++ b/Common/Types/Email.ts @@ -53,7 +53,7 @@ export default class Email extends DatabaseProperty { } public static isValid(value: string): boolean { - const re: RegExp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,9}$/i; + const re: RegExp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,10}$/i; const isValid: boolean = re.test(value); if (!isValid) { return false;