Comments (5)
It may be related to this: https://nodejs.org/dist/latest-v17.x/docs/api/intl.html#internationalization-support
I don't understand why regular expression is related to internationalization.
from cocos-engine.
它可能与此相关:https://nodejs.org/dist/latest-v17.x/docs/api/intl.html#internationalization-support
我不明白为什么正则表达式与国际化相关。
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.
from cocos-engine.
Got it, thanks.
Yep, the ICU module is not included in v8 to reduce size. We will take a look how to provide it.
from cocos-engine.
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.
from cocos-engine.
Sure, we will resolve it.
from cocos-engine.
Related Issues (20)
- spine隐藏时调用setAnimation报错 HOT 2
- The same 3D scene 3.8.3 takes up 90MB more memory than Unity 2021 HOT 5
- taobao Platform can not trigger clearLRU
- 当一个bundle中包含 "排除" 设置时, 不管这个bundle内容是否改变. 每次build后, 都会生成新的config.json HOT 2
- 希望能支持 新版本 (24,25,26)的 Android NDK HOT 2
- 编辑器中, 无法定位 预制体上 龙鼓组件的 json 文件
- 单选框添加必须选中一个选项的功能
- 资源在不同AssetBundle优先级中归属问题
- shader能内置个世界矩阵的逆矩阵吗? 翻了文档和源码都没有找到
- [native] Keep the same behavior of Promise rejection and multiple resolve as nodejs and web
- [bug] The generated JS code format was changed in v3.8.3
- Editor tool for collect shader variants information in the whole project, and runtime preload api for collected variants.
- 关于 cocos编译后的微信小游戏的 window未定义 的错误.
- 希望在 cc的宏可用, 但是引擎以及canvas尚未初始化时, 加入一个hook节点, 可以让开发者来修改 宏.
- 【BUG】3.8.3 bundle独立构建有问题
- [3.8.3] Custom gpu particle shader effect render error
- [3.8.3] if use CustomRendererPipeline the gpu particle will render error
- [3.8.x] Mybe the cocos engine can use extension 'KHR_parallel_shader_compile' to optimizethe compilation time of many shaders
- 希望能暴露 IAssembler 和 IAssemblerManager , 自己写 Assembler 是要用到. HOT 4
- wrong behavior with propagationImmediateStopped
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 cocos-engine.