- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1.6 KiB
1.6 KiB
unicode-canonical-property-names-ecmascript 
unicode-canonical-property-names-ecmascript exports the set of canonical Unicode property names that are supported in ECMAScript RegExp property escapes.
Installation
To use unicode-canonical-property-names-ecmascript, install it as a dependency via npm:
$ npm install unicode-canonical-property-names-ecmascript
Then, require it:
const properties = require('unicode-canonical-property-names-ecmascript');
Example
properties.has('ID_Start');
// → true
properties.has('IDS');
// → false
For maintainers
How to publish a new release
-
On the
mainbranch, bump the version number inpackage.json:npm version patch -m 'Release v%s'Instead of
patch, useminorormajoras needed.Note that this produces a Git commit + tag.
-
Push the release commit and tag:
git push && git push --tagsOur CI then automatically publishes the new release to npm.
Author
| Mathias Bynens |
License
unicode-canonical-property-names-ecmascript is available under the MIT license.