a984e646c337a7097436b555dfb2a25898100f537c2952c01353551193fda4c9740aa79e67e532e88a939ddefb5460053df92c599a3831a98729a47ce389be 449 B

12345678910111213
  1. /**
  2. * @author Toru Nagashima <https://github.com/mysticatea>
  3. */
  4. "use strict";
  5. /**
  6. * Check whether a given character is a combining mark or not.
  7. * @param {number} codePoint The character code to check.
  8. * @returns {boolean} `true` if the character belongs to the category, any of `Mc`, `Me`, and `Mn`.
  9. */
  10. module.exports = function isCombiningCharacter(codePoint) {
  11. return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint));
  12. };