-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added property to Emoji class to be used for pattern matching purposes #486
added property to Emoji class to be used for pattern matching purposes #486
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rubengees is this a valid approach to fix the problem?
@vanniktech if it works and it's better than what we currently have, why not? :) |
@rubengees poke here again :P |
@tricksilver04 I've added test for this: #578 I tried your changes locally and unignored the test, however it's failing for the red emoji heart. Can you please have another look? |
@vanniktech I debugged this a bit and have the following findings:
I can think of two solutions:
|
Yes if I remember correctly, we've had a report about this in the past and did a fix for it. (without thinking about all of the other emojis like described here) Can we do a mix that we adjust the generator to include the information and just get rid of the double variant selector ourself? |
@rubengees I just saw this Line 248 in b1155d5
This is where we handle the star |
This is to fix issues #485 and #484. I added a new property for Emoji for pattern matching purposes. The issue was that whenever the emoji has more than one code point, EmojiUtils.isOnlyEmojis() doesn't work.