enhance free email

This commit is contained in:
Frédéric FRANCE 2020-05-15 18:07:17 +02:00
parent fbc6f2d954
commit e583dc0a7f
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -6690,6 +6690,14 @@ class Form
text: $.trim(match[1]) + " <" + match[2] + ">"
}
}
var match = params.term.match(new RegExp("^" + REGEX_EMAIL + "$", "i"));
// console.log(match);
if (match !== null) {
return {
id: $.trim(match[1]) + " <" + match[1] + ">",
text: $.trim(match[1]) + " <" + match[1] + ">"
}
}
return null;
}';
}