]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/utils/unicode/is-combining-character.js
2 * @author Toru Nagashima <https://github.com/mysticatea>
7 * Check whether a given character is a combining mark or not.
8 * @param {number} codePoint The character code to check.
9 * @returns {boolean} `true` if the character belongs to the category, any of `Mc`, `Me`, and `Mn`.
11 module
.exports
= function isCombiningCharacter(codePoint
) {
12 return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String
.fromCodePoint(codePoint
));