From 310ad81a698d5aca6033b10cbecdbc3b14b02348 Mon Sep 17 00:00:00 2001 From: Dani Herrero Date: Thu, 1 Jun 2017 14:05:23 +0200 Subject: [PATCH] emails separados con coma --- services/client/common/models/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/client/common/models/Client.js b/services/client/common/models/Client.js index 051476522..3b5feb10d 100644 --- a/services/client/common/models/Client.js +++ b/services/client/common/models/Client.js @@ -27,7 +27,7 @@ module.exports = function(Client) { Client.validatesFormatOf('email', { message: 'Correo electrónico inválido', allowNull: true, - with: /^[\w|\.|\-]+@\w[\w|\.|\-]*\w$/ + with: /^[\w|\.|\-]+@\w[\w|\.|\-]*\w(,[\w|\.|\-]+@\w[\w|\.|\-]*\w)*$/ }); Client.validatesLengthOf('postcode', { allowNull: true,