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

Unicode property escapes #850

Closed
Bardiamist opened this issue Nov 10, 2022 · 4 comments
Closed

Unicode property escapes #850

Bardiamist opened this issue Nov 10, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Bardiamist
Copy link

Unicode property escapes is supports now or no?

I have Ract native 0.70.5 and want to know can I use Unicode property escapes or no.

Looks its works but the documentation still say that not supported

@Bardiamist Bardiamist added the enhancement New feature or request label Nov 10, 2022
@Bardiamist
Copy link
Author

Bardiamist commented Nov 10, 2022

Looks

'a🙂dsf🙂26754 ds+.'.replace(/[^\p{L}\p{Z}\d.+]/gu, '')

works as expecting

Result: adsf26754 ds+.

Any underwater rocks?

@jpporto
Copy link
Contributor

jpporto commented Nov 10, 2022

Hi,

Features are added to Hermes independently from RN releases. That means there's always going to be a "gap" between the most recent Hermes and the latest RN release (potentially including point releases, e.g. 0.70.5, as the RN controls what is ported over).

Thus I wouldn't be surprised if Hermes supported the feature but it isn't available in RN yet. Have you tried asking the RN team if that's supported in that version?

John Paul

@Bardiamist
Copy link
Author

@jpporto you can see that I also asked in rn repository

But here would be good if somebody answer: Is Hermes supports Unicode property escapes now? If yes then from what version? Then we can see the React native uses this Hermes version or no.

@fbmal7
Copy link
Contributor

fbmal7 commented Nov 14, 2022

@Bardiamist Hermes does not support Unicode property escapes currently. Given that you are experiencing support in some version of RN, that means you are either using JSC or there is some polyfill providing support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants