Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b894a7 commit 179581aCopy full SHA for 179581a
src/core/render/emojify.js
@@ -12,9 +12,11 @@ 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
)
- .replace(/:([a-z0-9_\-\+]+?):/g, (inBrowser && window.emojify) || replace)
20
+ .replace(/:(\w+?):/gi, (inBrowser && window.emojify) || replace)
21
.replace(/__colon__/g, ':');
22
}
0 commit comments