Skip to content

Fix crash on categories with GitHub custom emojis#122

Merged
laymonage merged 1 commit into
mainfrom
fix-crash-emoji
Jul 3, 2021
Merged

Fix crash on categories with GitHub custom emojis#122
laymonage merged 1 commit into
mainfrom
fix-crash-emoji

Conversation

@laymonage

Copy link
Copy Markdown
Member

GitHub has custom emojis:
:atom: :basecamp: :basecampy: :bowtie: :electron: :feelsgood: :finnadie: :goberserk: :godmode: :hurtrealbad: :neckbeard: :octocat: :rage1: :rage2: :rage3: :rage4: :shipit: :suspect: :trollface:

which is rendered using <img> tag instead of <g-emoji>, so the regex won't match. We can't use <img> tags in <option>, so let's just render an empty string.

@vercel

vercel Bot commented Jul 3, 2021

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/laymonage/giscus/gwPqyG6VkFQWvuAxdPtdgWJAdepb
✅ Preview: https://giscus-git-fix-crash-emoji-laymonage.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant