From 48a76354496827c71982d66db8d0140eb09b199a Mon Sep 17 00:00:00 2001 From: alexandre Date: Fri, 2 Dec 2022 09:18:52 +0100 Subject: [PATCH] refs #4893 regex changed --- modules/client/back/models/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/back/models/client.js b/modules/client/back/models/client.js index e66cdb83f..e07993f79 100644 --- a/modules/client/back/models/client.js +++ b/modules/client/back/models/client.js @@ -27,7 +27,7 @@ module.exports = Self => { message: 'Invalid email', allowNull: true, allowBlank: true, - with: /^[\w|.|-]+@[\w|-]+(\.[\w|-]+)*(,[\w|.|-]+@[\w|-]+(\.[\w|-]+)*)*$/ + with: /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61})[\W]*$/ }); Self.validatesLengthOf('postcode', {