enhance free email

This commit is contained in:
Frédéric FRANCE 2020-05-15 18:50:37 +02:00
parent 1bc8765291
commit 76bb57bc6b
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -6699,9 +6699,10 @@ class Form
var match = params.term.match(new RegExp("^" + REGEX_EMAIL + "$", "i"));
// console.log(match);
if (match !== null) {
var pos = params.term.indexOf("@");
return {
id: $.trim(match[1]) + " <" + match[1] + ">",
text: $.trim(match[1]) + " <" + match[1] + ">"
id: $.trim(match[1].substring(0, pos)) + " <" + match[1] + ">",
text: $.trim(match[1].substring(0, pos)) + " <" + match[1] + ">"
}
}
return null;