Skip to content

Conversation

pangbo13
Copy link
Contributor

@pangbo13 pangbo13 commented Jun 9, 2025

Currently, Emoji.exists? only checks if the alias name exists using Emoji.aliases_values.include?(name). This leads to incorrect false returns for certain variations.

For example, the emoji waving_hand has an alias wave.

  • Emoji.exists?("waving_hand"), Emoji.exists?(":waving_hand:"), and Emoji.exists?(":waving_hand:t2:") all return true.
  • However, Emoji.exists?(":wave:") and Emoji.exists?(":wave:t2:") return false, while only Emoji.exists?("wave") returns true.

image

This PR attempts to resolve this by replacing the alias with the original name and then checking if the emoji exists again.

Copy link

github-actions bot commented Aug 9, 2025

This pull request has been automatically marked as stale because it has been open for 60 days with no activity. To keep it open, remove the stale tag, push code, or add a comment. Otherwise, it will be closed in 14 days.

@github-actions github-actions bot added the Stale label Aug 9, 2025
@CvX CvX requested a review from jjaffeux August 9, 2025 08:12
@github-actions github-actions bot removed the Stale label Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant