mirror of
https://github.com/danbulant/Shasha
synced 2026-05-27 05:42:31 +00:00
Fix: small bug
This commit is contained in:
parent
4281c713cb
commit
63cfd01076
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
module.exports = function emoteMessage(client, content) {
|
module.exports = function emoteMessage(client, content) {
|
||||||
const emotes = content.match(/(?<![<a]):\w{1,32}:(?!\d{17,19}>)/g);
|
const emotes = content.match(/(?<![<a]):\w{1,32}:(?!\d{17,19}>)/g);
|
||||||
if (emotes.length > 0) {
|
if (emotes?.length > 0) {
|
||||||
let theEmotes = [];
|
let theEmotes = [];
|
||||||
for (const emoteName of emotes) {
|
for (const emoteName of emotes) {
|
||||||
let findThis = emoteName.slice(1, -1);
|
let findThis = emoteName.slice(1, -1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue