fix Validador de mail ahora acepta guiones

This commit is contained in:
Javi Gallego 2018-03-12 12:08:34 +01:00
parent dcf45f014c
commit f0164fc4a4
1 changed files with 1 additions and 1 deletions

View File

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