ソースを参照

fix: emoji in links

master
Bettenbuk Zoltan 6年前
コミット
b64294af6d
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      react/features/chat/functions.js

+ 1
- 1
react/features/chat/functions.js ファイルの表示

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

読み込み中…
キャンセル
保存