0
0

Fix: emoji regex (#3093)

This commit is contained in:
MeiMei 2018-11-04 17:36:37 +09:00 committed by syuilo
parent 69d72819c6
commit 18571c52fb

View File

@ -9,7 +9,7 @@ export type TextElementEmoji = {
};
export default function(text: string) {
const match = text.match(/^:([a-zA-Z0-9+-_]+?):/);
const match = text.match(/^:([a-zA-Z0-9+_-]+):/);
if (!match) return null;
const emoji = match[0];
return {