emails separados con coma
This commit is contained in:
parent
fb8e62c840
commit
310ad81a69
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue