mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Merge dev
This commit is contained in:
commit
91e234ee3b
2 changed files with 6 additions and 1 deletions
|
@ -16,4 +16,3 @@ pipeline:
|
|||
# Push new version when version tag is created
|
||||
event: tag
|
||||
tag: v*
|
||||
|
||||
|
|
|
@ -71,6 +71,12 @@ export async function toDbReaction(
|
|||
if (Object.keys(legacies).includes(reaction)) return legacies[reaction];
|
||||
// Convert old heart to new
|
||||
if (reaction === "♥️") return "❤️";
|
||||
// Allow unicode reactions
|
||||
const match = emojiRegex.exec(reaction);
|
||||
if (match) {
|
||||
const unicode = match[0];
|
||||
return unicode;
|
||||
}
|
||||
|
||||
// Allow unicode reactions
|
||||
const match = emojiRegex.exec(reaction);
|
||||
|
|
Loading…
Reference in a new issue