提交 b1d5e1ef 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

pass all tests

上级 16497283
......@@ -72,7 +72,7 @@ class Message {
}
digestEmoji(str) {
// <img class="emoji emoji1f4a4" text="[流汗]_web" src="/zh_CN/htmledition/v2/images/spacer.gif" />
return str
return str && str
.replace(/<img class="\w*?emoji (\w*?emoji[^"]+?)" text="(.*?)_web" src=[^>]+>/g
, '($1$2)')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册