Skip to content
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

Issue with parsing unqualified transgender flag #21

Open
korenskoy opened this issue Jun 11, 2021 · 0 comments
Open

Issue with parsing unqualified transgender flag #21

korenskoy opened this issue Jun 11, 2021 · 0 comments

Comments

@korenskoy
Copy link

The parse function for unqualified transgender flag emojis does not work correctly.

Steps to reproduce
https://codepen.io/korenskoy/pen/ExWeqLe?editors=0011

import { parse } from 'twemoji-parser';
const  entities = parse(`
1F3F3 FE0F 200D 26A7 FE0F                              ; fully-qualified     # 🏳️‍⚧️ E13.0 transgender flag
1F3F3 200D 26A7 FE0F                                   ; unqualified         # 🏳‍⚧️ E13.0 transgender flag
1F3F3 FE0F 200D 26A7                                   ; unqualified         # 🏳️‍⚧ E13.0 transgender flag
1F3F3 200D 26A7                                        ; unqualified         # 🏳‍⚧ E13.0 transgender flag
`);

Expected behavior
All unqualified emojis should be parsed correctly.

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

No branches or pull requests

1 participant