Procházet zdrojové kódy

fix: emoji in links

j8
Bettenbuk Zoltan před 5 roky
rodič
revize
b64294af6d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      react/features/chat/functions.js

+ 1
- 1
react/features/chat/functions.js Zobrazit soubor

32
         // Adding slack-type emoji format
32
         // Adding slack-type emoji format
33
         escapedValues.push(escapeRegexp(`:${key}:`));
33
         escapedValues.push(escapeRegexp(`:${key}:`));
34
 
34
 
35
-        const regexp = `(${escapedValues.join('|')})`;
35
+        const regexp = `\\B(${escapedValues.join('|')})\\B`;
36
 
36
 
37
         EMOTICON_REGEXP_ARRAY.push([ new RegExp(regexp, 'g'), value ]);
37
         EMOTICON_REGEXP_ARRAY.push([ new RegExp(regexp, 'g'), value ]);
38
     }
38
     }

Načítá se…
Zrušit
Uložit