Skip to content

Commit

Permalink
Updated extension finder to use new variable for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomsoz125 committed Jan 29, 2025
1 parent 4eec0e2 commit 550f6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/copyEmojiMarkdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getEmojiMarkdown(target: Target, copyUnicode: boolean): string {
const imgSrc = target?.firstChild.src;
const url = new URL(imgSrc);
const isAnimated = url.searchParams.get("animated") === "true";
const extension = target?.firstChild.src.match(
const extension = imgSrc.match(
/https:\/\/cdn\.discordapp\.com\/emojis\/\d+\.(\w+)/
)?.[1];

Expand Down

0 comments on commit 550f6ed

Please sign in to comment.