Comments (3)
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.
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.
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)
- Problems loading emscripten compiled js file in Hermes. Works on JSC/V8. HOT 6
- Invalid Source map HOT 1
- [hermes-parser] Support Import Attributes HOT 1
- When I CrossCompilation build for android, I got the error, the branch is 'rn/0.74-stable' HOT 3
- Failed to build CLI on Linux HOT 2
- Intl.PluralRules support
- Fail to build android dynamic lib 'libhermes.so' in branch 'origin/static_h' HOT 4
- Intl.NumberFormat signDisplay option displays odd behaviour HOT 1
- instanceof on host objects HOT 16
- Symbol.hasInstance is not used in instanceof lookup HOT 2
- Catch JSErrors in C++ HOT 1
- babel-plugin-syntax-hermes-parser fails to parse decorators HOT 1
- Promise.allSettled undefined on iOS and Android using Hermes HOT 2
- How to get libjsi.so and header files from hermes aar HOT 1
- Missing default rejection tracking and console.log() polyfill to the Hermes CLI HOT 4
- top-level await not supported HOT 4
- error: no member named 'setfill' in namespace 'std' HOT 3
- toLocaleString date function returns the wrong date for "Asia/Singapore" timezone and 1981 and older years HOT 4
- Apollo Client is 4-10× slower with Hermes vs. JSC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hermes.