enhance free email

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

View File

@ -6692,6 +6692,10 @@ class Form
text: $.trim(match[1]) + " <" + match[2] + ">"
}
}
if (params.term.indexOf("<") >= 0) {
// Return null to disable tag creation
return null;
}
var match = params.term.match(new RegExp("^" + REGEX_EMAIL + "$", "i"));
// console.log(match);
if (match !== null) {