Git Product home page Git Product logo

Comments (7)

scriby avatar scriby commented on May 18, 2024

It looks like this issue is resolved in Unicode 12.1 where both combinations are in the RGI.

from emoji-regex.

JuanCarlosC avatar JuanCarlosC commented on May 18, 2024

@scriby I am still experiencing the same issue where it will only work if the darker skin tone is on the left side. Did you find a solution?

I've used the inject-sequences.js script to update the regular expression based on the data from Unicode v12.1, but still seeing the same issue.

Screen Shot 2020-02-25 at 8 03 45 PM

from emoji-regex.

scriby avatar scriby commented on May 18, 2024

from emoji-regex.

JuanCarlosC avatar JuanCarlosC commented on May 18, 2024

@scriby updated my comment above. Yes, I ran this script against 12.1. Are you no longer experiencing the issue?

from emoji-regex.

scriby avatar scriby commented on May 18, 2024

from emoji-regex.

mathiasbynens avatar mathiasbynens commented on May 18, 2024

If I understand the issue correctly, it looks like this has already been fixed when I updated to the latest Unicode version:

$ node -p "require('emoji-regex')().exec('\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}')"
[ 'πŸ§‘πŸΌβ€πŸ€β€πŸ§‘πŸ»', index: 0, input: 'πŸ§‘πŸΌβ€πŸ€β€πŸ§‘πŸ»', groups: undefined ]

$ node -p "require('emoji-regex')().exec('\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}')"
[ 'πŸ§‘πŸ»β€πŸ€β€πŸ§‘πŸΌ', index: 0, input: 'πŸ§‘πŸ»β€πŸ€β€πŸ§‘πŸΌ', groups: undefined ]

@scriby Can you confirm this is now behaving as you expected?

from emoji-regex.

mathiasbynens avatar mathiasbynens commented on May 18, 2024

Closing since I believe this has been resolved. Feel free to reopen if I misunderstood.

from emoji-regex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.