Skip to content

Commit

Permalink
Merge pull request #61 from Mimickal/fix-bad-emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
Mimickal authored Apr 22, 2022
2 parents 6b6a06c + f996a08 commit 56f7e9e
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 137 deletions.
241 changes: 106 additions & 135 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "I'm a basic, no BS Discord bot that can assign and unassign roles using message reactions. I am completely free and open source, and always will be.",
"main": "src/main.js",
"dependencies": {
"discord-command-registry": "^1.2.0",
"discord-command-registry": "^1.2.1",
"discord.js": "^13.3.1",
"knex": "^0.20.13",
"lodash": "^4.17.20",
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function isDiscordId(str) {
* Matches built-in unicode emoji literals.
*/
function isEmojiStr(str) {
return str?.match?.(/^\p{Extended_Pictographic}$/u);
return str?.match?.(/^\p{Emoji}+/u);
}

/**
Expand Down

0 comments on commit 56f7e9e

Please sign in to comment.