Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
28 lines
929 B
Diff
28 lines
929 B
Diff
diff --git a/src/index.js b/src/index.js
|
|
index ae8106081908e6ef98ebac640b506d8dbc34d00e..6ab77b98e9d7ab69d7addab4586512a380f464c7 100755
|
|
--- a/src/index.js
|
|
+++ b/src/index.js
|
|
@@ -3,7 +3,6 @@
|
|
|
|
'use strict';
|
|
|
|
-const { ucs2 } = require('punycode');
|
|
const { Transform } = require('stream');
|
|
const Sax = require('sax');
|
|
const { SVGPathData } = require('svg-pathdata');
|
|
@@ -479,9 +478,11 @@ class SVGIcons2SVGFontStream extends Transform {
|
|
delete glyph.paths;
|
|
const d = glyphPath.round(this._options.round).encode();
|
|
glyph.unicode.forEach((unicode, i) => {
|
|
- const unicodeStr = ucs2
|
|
- .decode(unicode)
|
|
- .map((point) => '&#x' + point.toString(16).toUpperCase() + ';')
|
|
+ const unicodeStr = [...unicode]
|
|
+ .map(
|
|
+ (char) =>
|
|
+ '&#x' + char.codePointAt(0).toString(16).toUpperCase() + ';',
|
|
+ )
|
|
.join('');
|
|
|
|
this.push(
|