Explorar o código

Bugfix. Numbers aren't delineators for mentions

JC Brand %!s(int64=6) %!d(string=hai) anos
pai
achega
1c50d4d7a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/converse-muc.js

+ 1 - 1
src/headless/converse-muc.js

@@ -616,7 +616,7 @@ converse.plugins.add('converse-muc', {
                 if (!longest_match) {
                     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
                     // further alphabetical characters than our longest
                     // match.