source: frontend/node_modules/html-entities/dist/commonjs/surrogate-pairs.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 912 bytes
RevLine 
[9af201e]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.highSurrogateTo = exports.highSurrogateFrom = exports.getCodePoint = exports.fromCodePoint = void 0;
4exports.fromCodePoint = String.fromCodePoint ||
5 function (astralCodePoint) {
6 return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xd800, ((astralCodePoint - 0x10000) % 0x400) + 0xdc00);
7 };
8// @ts-expect-error - String.prototype.codePointAt might not exist in older node versions
9exports.getCodePoint = String.prototype.codePointAt
10 ? function (input, position) {
11 return input.codePointAt(position);
12 }
13 : function (input, position) {
14 return (input.charCodeAt(position) - 0xd800) * 0x400 + input.charCodeAt(position + 1) - 0xdc00 + 0x10000;
15 };
16exports.highSurrogateFrom = 0xd800;
17exports.highSurrogateTo = 0xdbff;
18//# sourceMappingURL=surrogate-pairs.js.map
Note: See TracBrowser for help on using the repository browser.