Bugfix. Numbers aren't delineators for mentions

This commit is contained in:
JC Brand 2019-07-04 08:14:44 +02:00
parent f17edee827
commit 1c50d4d7a1

View File

@ -616,7 +616,7 @@ converse.plugins.add('converse-muc', {
if (!longest_match) { if (!longest_match) {
return null; return null;
} }
if ((mention[longest_match.length] || '').match(/[A-Za-zäëïöüâêîôûáéíóúàèìòùÄËÏÖÜÂÊÎÔÛÁÉÍÓÚÀÈÌÒÙ]/i)) { if ((mention[longest_match.length] || '').match(/[A-Za-zäëïöüâêîôûáéíóúàèìòùÄËÏÖÜÂÊÎÔÛÁÉÍÓÚÀÈÌÒÙ0-9]/i)) {
// avoid false positives, i.e. mentions that have // avoid false positives, i.e. mentions that have
// further alphabetical characters than our longest // further alphabetical characters than our longest
// match. // match.