We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9fc279 commit af45845Copy full SHA for af45845
src/core/render/emojify.js
@@ -36,7 +36,7 @@ export function emojify(text, useNativeEmoji) {
36
// Mark colons in comments
37
.replace(/<!--[\s\S]+?-->/g, m => m.replace(/:/g, '__colon__'))
38
// Replace emoji shorthand codes
39
- .replace(/:([\w\-+]+?):/g, (m, $1) =>
+ .replace(/:([a-z0-9_\-+]+?):/g, (m, $1) =>
40
replaceEmojiShorthand(m, $1, useNativeEmoji)
41
)
42
// Restore colons in tags and comments
0 commit comments