We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1227b2 commit 719dcbeCopy full SHA for 719dcbe
src/core/render/emojify.js
@@ -12,11 +12,9 @@ function replace(m, $1) {
12
13
export function emojify(text) {
14
return text
15
- .replace(/:\+1:/g, ':thumbsup:')
16
- .replace(/:-1:/g, ':thumbsdown:')
17
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, m =>
18
m.replace(/:/g, '__colon__')
19
)
20
- .replace(/:(\w+?):/gi, (inBrowser && window.emojify) || replace)
+ .replace(/:([a-z0-9_\-\+]+?):/g, (inBrowser && window.emojify) || replace)
21
.replace(/__colon__/g, ':');
22
}
0 commit comments