From 911fd25baf2dea4e96657c34fa3258742d559f9d Mon Sep 17 00:00:00 2001 From: Seyed Ali Mojtabavi <63472358+mojtabavi@users.noreply.github.com> Date: Sat, 3 Apr 2021 14:54:04 +0430 Subject: [PATCH] change email regex to a valid and standard one --- src/data/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/index.js b/src/data/index.js index ffd1e9a..b1c4084 100644 --- a/src/data/index.js +++ b/src/data/index.js @@ -42,7 +42,7 @@ export const patterns = [{ }, { name:"Email", - regex:/^.+@.+$/, + regex:/(?:[\w!#$%&'*+=?^_\/{|}`~-]+(?:\.[\w!#$%&'*+=?^_`{|}~-]+)*)@(?:(?:\w(?:\w*\w)?\.)+\w(?:\w*\w)?)/, description:"Verify that there is an @ symbol with something before it", tags:"email,validation" },