Skip to content

Commit 179581a

Browse files
authored
Revert "fix: correctly fix missing +1, -1 (#1722)"
This reverts commit a30b165.
1 parent 9b894a7 commit 179581a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/render/emojify.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ function replace(m, $1) {
1212

1313
export function emojify(text) {
1414
return text
15+
.replace(/:\+1:/g, ':thumbsup:')
16+
.replace(/:-1:/g, ':thumbsdown:')
1517
.replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g, m =>
1618
m.replace(/:/g, '__colon__')
1719
)
18-
.replace(/:([a-z0-9_\-\+]+?):/g, (inBrowser && window.emojify) || replace)
20+
.replace(/:(\w+?):/gi, (inBrowser && window.emojify) || replace)
1921
.replace(/__colon__/g, ':');
2022
}

0 commit comments

Comments
 (0)