|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
449 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @author Toru Nagashima <https://github.com/mysticatea>
|
|---|
| 3 | */
|
|---|
| 4 | "use strict";
|
|---|
| 5 |
|
|---|
| 6 | /**
|
|---|
| 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`.
|
|---|
| 10 | */
|
|---|
| 11 | module.exports = function isCombiningCharacter(codePoint) {
|
|---|
| 12 | return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint));
|
|---|
| 13 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.