From 62d8845adf7071dbc9c4d6c82528485b5250bdbc Mon Sep 17 00:00:00 2001 From: Viktor Kirilov Date: Wed, 27 Mar 2019 17:40:03 +0200 Subject: [PATCH] Allow domains like .digital --- src/Schema/Customer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/Customer.js b/src/Schema/Customer.js index 4d393d2..8dce990 100644 --- a/src/Schema/Customer.js +++ b/src/Schema/Customer.js @@ -26,7 +26,7 @@ const Customer = new mongoose.Schema({ required: true, lowercase: true, trim: true, - match: /^([\w-.+]+@([\w-]+\.)+[\w-]{2,6})?$/, + match: /^([\w-.+]+@([\w-]+\.)+[\w-]{2,10})?$/, }, transactionStartedAt: Date, lastProcessorSave: Date,