diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-03-18 20:02:25 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-03-18 20:02:25 +0900 |
| commit | c65256d02bdea9b5b73ffe4995e090e5ca1e7f51 (patch) | |
| tree | 581533f6e4f73641bedbd83ae047f29f46f4b93b /src/misc | |
| parent | :art: (diff) | |
| download | sharkey-c65256d02bdea9b5b73ffe4995e090e5ca1e7f51.tar.gz sharkey-c65256d02bdea9b5b73ffe4995e090e5ca1e7f51.tar.bz2 sharkey-c65256d02bdea9b5b73ffe4995e090e5ca1e7f51.zip | |
Fix custom emoji validation (#4528)
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/reaction-lib.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts index a27fb883b1..7e5a1b0bc0 100644 --- a/src/misc/reaction-lib.ts +++ b/src/misc/reaction-lib.ts @@ -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, |