UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

18 lines (17 loc) 612 B
"use client"; function t(r, n) { const e = Number.parseInt(r, n); return ( // C0 except for HT, LF, FF, CR, space. e < 9 || e === 11 || e > 13 && e < 32 || // Control character (DEL) of C0, and C1 controls. e > 126 && e < 160 || // Lone high surrogates and low surrogates. e > 55295 && e < 57344 || // Noncharacters. e > 64975 && e < 65008 || /* eslint-disable no-bitwise */ (e & 65535) === 65535 || (e & 65535) === 65534 || /* eslint-enable no-bitwise */ // Out of range e > 1114111 ? "�" : String.fromCodePoint(e) ); } export { t as decodeNumericCharacterReference };