fixes #4893 Comprobar formato del correo al insertar #1196

Merged
alexandre merged 2 commits from 4893-formato-correo into dev 2022-12-13 08:13:44 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 48a7635449 - Show all commits

View File

@ -27,7 +27,7 @@ module.exports = Self => {
message: 'Invalid email',
allowNull: true,
allowBlank: true,
with: /^[\w|.|-]+@[\w|-]+(\.[\w|-]+)*(,[\w|.|-]+@[\w|-]+(\.[\w|-]+)*)*$/
with: /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61})[\W]*$/
});
Self.validatesLengthOf('postcode', {