[Dev] Twemoji Parser: Added update instructions (#3131)
This commit is contained in:
parent
6781b496c7
commit
1e6f16ab33
@ -3,7 +3,7 @@
|
||||
// Version f8312f3 12.03.2022
|
||||
|
||||
const vs16RegExp = /\uFE0F/g;
|
||||
// avoid using a string literal like '\u200D' here because minifiers expand it inline
|
||||
// avoid using a string literal like `\u200D` here because minifiers expand it inline
|
||||
const zeroWidthJoiner = String.fromCharCode(0x200d);
|
||||
|
||||
export function removeVS16s(rawEmoji) {
|
||||
@ -11,9 +11,11 @@ export function removeVS16s(rawEmoji) {
|
||||
}
|
||||
|
||||
// Default Twemoji regex was modified here.
|
||||
// An exception for ascii emoji has been added to the beginning of the regular string: 🅰🅱🅾🅿
|
||||
// UTF-16 endcoding are \ud83c\udd70, \ud83c\udd71,\ud83c\udd7e and \ud83c\udd7f
|
||||
// An exception for ascii emoji has been added to the beginning of the regular string: 🅰🅱🅾🅿.
|
||||
// UTF-16 endcoding are `\ud83c\udd70`, `\ud83c\udd71`, `\ud83c\udd7e` and `\ud83c\udd7f`.
|
||||
// These emojis in the graphic version must end with the `\ufe0f` symbol.
|
||||
// Therefore, they should be excluded from the regular expression.
|
||||
// You must remove next substring `\udd70\udd71\udd7e\udd7f` from the middle of the regex on every update.
|
||||
|
||||
// This file is generated by source/emoji/scripts/generate.sh
|
||||
// eslint-disable-next-line max-len
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user