style: apply biome formatting

This commit is contained in:
Peter Steinberger
2026-01-02 01:29:05 +01:00
parent 336048441c
commit c31070db24
13 changed files with 78 additions and 62 deletions

View File

@@ -53,7 +53,9 @@ function normalizeReactionEmoji(raw: string) {
throw new Error("emoji required");
}
const customMatch = trimmed.match(/^<a?:([^:>]+):(\d+)>$/);
const identifier = customMatch ? `${customMatch[1]}:${customMatch[2]}` : trimmed;
const identifier = customMatch
? `${customMatch[1]}:${customMatch[2]}`
: trimmed;
return encodeURIComponent(identifier);
}