Files
NapCatQQ/.pnpm-store/v3/files/12/5a8c6efa56dbe1e812da9664d241aaf3cca068f9752d0ef2dc5cc5ee1d788e068fdc2ceedc82c055d6fac2deefc8df9a90ba02f94124c5d9030dfc753e2baa
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

10 lines
192 B
Plaintext

/**
* The smallest way to encode a character.
*
* @param {number} code
* @returns {string}
*/
export function formatBasic(code) {
return '&#x' + code.toString(16).toUpperCase() + ';'
}