Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
14 lines
461 B
Plaintext
14 lines
461 B
Plaintext
/**
|
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
*/
|
|
"use strict";
|
|
|
|
/**
|
|
* Check whether a given character is a combining mark or not.
|
|
* @param {number} codePoint The character code to check.
|
|
* @returns {boolean} `true` if the character has the General Category of Combining Mark (M), consisting of `Mc`, `Me`, and `Mn`.
|
|
*/
|
|
module.exports = function isCombiningCharacter(codePoint) {
|
|
return /^\p{M}$/u.test(String.fromCodePoint(codePoint));
|
|
};
|