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

14 lines
406 B
Plaintext

import {isAlphabetical} from 'is-alphabetical'
import {isDecimal} from 'is-decimal'
/**
* Check if the given character code, or the character code at the first
* character, is alphanumerical.
*
* @param {string|number} character
* @returns {boolean} Whether `character` is alphanumerical.
*/
export function isAlphanumerical(character) {
return isAlphabetical(character) || isDecimal(character)
}