Giter Site home page Giter Site logo

Comments (3)

neildhar avatar neildhar commented on August 30, 2024 1

Hey @Albert-Gao, that feature has been implemented in trunk in #1295, but isn't yet in the latest version of React Native. It should work when the next version of RN becomes available.

In the interim, if you have static RegExps that use this feature, you can consider using this babel transform: https://babeljs.io/docs/babel-plugin-transform-unicode-property-regex

Note that if you are using the babel transform, you will need to write your RegExp in the style /^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$/u, instead of invoking new RegExp

from hermes.

tmikov avatar tmikov commented on August 30, 2024

Can you please provide a minimal repro of the regexp for the Hermes CLI. Ideally it should be one line. We are not able to test RN apps.

from hermes.

Albert-Gao avatar Albert-Gao commented on August 30, 2024

sure :)

I found a test here:
https://github.com/facebook/hermes/blob/main/test/hermes/regexp-icase.js

the regexp causing problem is this one:
RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u")

should i just put it in the test like that, because it fails on the initialization? so it is suffice as a test case?

from hermes.

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.