Fix custom emoji validation (#4528)

This commit is contained in:
MeiMei 2019-03-18 20:02:25 +09:00 committed by syuilo
parent bd2ac515d1
commit c65256d02b

View file

@ -47,7 +47,7 @@ export async function toDbReaction(reaction: string, enableEmoji = true): Promis
return normalized;
}
const custom = reaction.match(/:([\w+-]+):/);
const custom = reaction.match(/^:([\w+-]+):$/);
if (custom) {
const emoji = await Emoji.findOne({
host: null,