refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
11
home/ags/node_modules/eslint/lib/rules/utils/unicode/index.js
generated
vendored
11
home/ags/node_modules/eslint/lib/rules/utils/unicode/index.js
generated
vendored
|
|
@ -1,11 +0,0 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
isCombiningCharacter: require("./is-combining-character"),
|
||||
isEmojiModifier: require("./is-emoji-modifier"),
|
||||
isRegionalIndicatorSymbol: require("./is-regional-indicator-symbol"),
|
||||
isSurrogatePair: require("./is-surrogate-pair")
|
||||
};
|
||||
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js
generated
vendored
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js
generated
vendored
|
|
@ -1,13 +0,0 @@
|
|||
/**
|
||||
* @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 belongs to the category, any of `Mc`, `Me`, and `Mn`.
|
||||
*/
|
||||
module.exports = function isCombiningCharacter(codePoint) {
|
||||
return /^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(codePoint));
|
||||
};
|
||||
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js
generated
vendored
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js
generated
vendored
|
|
@ -1,13 +0,0 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Check whether a given character is an emoji modifier.
|
||||
* @param {number} code The character code to check.
|
||||
* @returns {boolean} `true` if the character is an emoji modifier.
|
||||
*/
|
||||
module.exports = function isEmojiModifier(code) {
|
||||
return code >= 0x1F3FB && code <= 0x1F3FF;
|
||||
};
|
||||
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js
generated
vendored
13
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js
generated
vendored
|
|
@ -1,13 +0,0 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Check whether a given character is a regional indicator symbol.
|
||||
* @param {number} code The character code to check.
|
||||
* @returns {boolean} `true` if the character is a regional indicator symbol.
|
||||
*/
|
||||
module.exports = function isRegionalIndicatorSymbol(code) {
|
||||
return code >= 0x1F1E6 && code <= 0x1F1FF;
|
||||
};
|
||||
14
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js
generated
vendored
14
home/ags/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js
generated
vendored
|
|
@ -1,14 +0,0 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Check whether given two characters are a surrogate pair.
|
||||
* @param {number} lead The code of the lead character.
|
||||
* @param {number} tail The code of the tail character.
|
||||
* @returns {boolean} `true` if the character pair is a surrogate pair.
|
||||
*/
|
||||
module.exports = function isSurrogatePair(lead, tail) {
|
||||
return lead >= 0xD800 && lead < 0xDC00 && tail >= 0xDC00 && tail < 0xE000;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue