diff --git a/services/loopback/common/models/client.js b/services/loopback/common/models/client.js index b09c38688..f55d23021 100644 --- a/services/loopback/common/models/client.js +++ b/services/loopback/common/models/client.js @@ -35,7 +35,7 @@ module.exports = function(Self) { message: 'Correo electrónico inválido', allowNull: true, allowBlank: true, - with: /^[\w|-|.]+@[\w|-]+(\.[\w|-]+)*(,[\w|-|.]+@[\w|-]+(\.[\w|-]+)*)*$/ + with: /^[\w|.|-]+@[\w|-]+(\.[\w|-]+)*(,[\w|.|-]+@[\w|-]+(\.[\w|-]+)*)*$/ }); Self.validatesLengthOf('postcode', { allowNull: true,