mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 19:20:42 +00:00
Webpack build for branch 11.3-dev: f62fa05389
This commit is contained in:
parent
b7bf3aae39
commit
f1fed49e3f
2 changed files with 2 additions and 2 deletions
|
|
@ -1433,7 +1433,7 @@ class Util {
|
||||||
static parseEmoji(text) {
|
static parseEmoji(text) {
|
||||||
if (text.includes('%')) text = decodeURIComponent(text);
|
if (text.includes('%')) text = decodeURIComponent(text);
|
||||||
if (!text.includes(':')) return { animated: false, name: text, id: null };
|
if (!text.includes(':')) return { animated: false, name: text, id: null };
|
||||||
const m = text.match(/<?(a)?:(\w{2,32}):(\d{17,19})>?/);
|
const m = text.match(/<?(a:)?(\w{2,32}):(\d{17,19})>?/);
|
||||||
if (!m) return null;
|
if (!m) return null;
|
||||||
return { animated: Boolean(m[1]), name: m[2], id: m[3] };
|
return { animated: Boolean(m[1]), name: m[2], id: m[3] };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
discord.11.3-dev.min.js
vendored
2
discord.11.3-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue