-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Android V8 does'n support \p Regexp. #17006
Comments
I don't understand why regular expression is related to internationalization. |
Since RegExp Unicode Property Escapes are matched in a language-aware way, which requires ICU data (International Components for Unicode), which can be optionally included in NodeJS builds, So I suspect that Cocos' V8 builds don't include this data, since it works fine on other platforms. https://github.com/tc39/proposal-regexp-unicode-property-escapes And, theoretically, all the functions listed in the table should not work in their entirety without including this data. |
Got it, thanks. Yep, the ICU module is not included in v8 to reduce size. We will take a look how to provide it. |
RegExp's Unicode support is very important. If you want to correctly segment Chinese words, Emoji, etc., this is the simplest and most correct method. If the engine does not support it, the user also needs to increase the size of the polyfill. Hope it gets taken seriously. |
Sure, we will resolve it. |
Cocos Creator version
3.8.2
System information
MacOS
Issue description
It may be related to this: https://nodejs.org/dist/latest-v17.x/docs/api/intl.html#internationalization-support
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: