mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
11
web/node_modules/eslint/lib/rules/utils/unicode/index.js
generated
vendored
Normal file
11
web/node_modules/eslint/lib/rules/utils/unicode/index.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* @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
web/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js
generated
vendored
Normal file
13
web/node_modules/eslint/lib/rules/utils/unicode/is-combining-character.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @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
web/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js
generated
vendored
Normal file
13
web/node_modules/eslint/lib/rules/utils/unicode/is-emoji-modifier.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @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
web/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js
generated
vendored
Normal file
13
web/node_modules/eslint/lib/rules/utils/unicode/is-regional-indicator-symbol.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @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
web/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js
generated
vendored
Normal file
14
web/node_modules/eslint/lib/rules/utils/unicode/is-surrogate-pair.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* @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