emails separados con coma

This commit is contained in:
Dani Herrero 2017-06-01 14:05:23 +02:00
parent fb8e62c840
commit 310ad81a69
1 changed files with 1 additions and 1 deletions

View File

@ -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,