You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
function toCodePoints(unicodeSurrogates) { |
|
|
const points = []; |
|
|
let char = 0; |
|
|
let previous = 0; |
|
|
let i = 0; |
|
|
while(i < unicodeSurrogates.length) { |
|
|
char = unicodeSurrogates.charCodeAt(i++); |
|
|
if(previous) { |
|
|
points.push((0x10000 + ((previous - 0xd800) << 10) + (char - 0xdc00)).toString(16)); |
|
|
previous = 0; |
|
|
} else if (char > 0xd800 && char <= 0xdbff) { |
|
|
previous = char; |
|
|
} else { |
|
|
points.push(char.toString(16)); |
|
|
} |
|
|
} |
|
|
|
|
|
if(points.length && points[0].length === 2) { |
|
|
points[0] = '00' + points[0]; |
|
|
} |
|
|
|
|
|
return points; |
|
|
} |
|
|
|
|
|
var eye = "๐โ๐จ"; |
|
|
toCodePoints(eye) |
|
|
|
|
|
function ccc(str) { |
|
|
return str.split('').map(c => c.charCodeAt(0).toString(16)); |
|
|
} |
|
|
|
|
|
ccc("๐ณ๏ธโ๐") |
|
|
ccc("๐๏ธโโ๏ธ"); |
|
|
"๐โโ"; |
|
|
|
|
|
var regexp = new RegExp("(?:๐จ๐ปโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐จ๐ผโ๐คโ๐จ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐จ๐ฝโ๐คโ๐จ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐จ๐พโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐จ๐ฟโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ฉ๐ปโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ฉ๐ปโ๐คโ๐ฉ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ฉ๐ผโ๐คโ๐จ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐ฉ๐ผโ๐คโ๐ฉ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐ฉ๐ฝโ๐คโ๐จ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐ฉ๐ฝโ๐คโ๐ฉ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐ฉ๐พโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐ฉ๐พโ๐คโ๐ฉ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐ฉ๐ฟโ๐คโ๐จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ฉ๐ฟโ๐คโ๐ฉ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ง๐ปโ๐คโ๐ง<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ง๐ผโ๐คโ๐ง<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ง๐ฝโ๐คโ๐ง<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ง๐พโ๐คโ๐ง<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ง๐ฟโ๐คโ๐ง<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐งโ๐คโ๐ง|๐ซ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ฌ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐ญ<EFBFBD>[<EFBFBD>-<EFBFBD>]|<EFBFBD>[<EFBFBD>-<EFBFBD>])|(?:<EFBFBD>[<EFBFBD><EFBFBD>]|๐ง)(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?โ(?:โ|โ|โ|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>])|(?:<EFBFBD>[<EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD>]|โน)((?:<EFBFBD>[<EFBFBD>-<EFBFBD>])โ[โโ])|(?:<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>])(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?โ[โโ]|(?:๐จโโค๏ธโ๐โ๐จ|๐จโ๐จโ๐ฆโ๐ฆ|๐จโ๐จโ๐งโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐จโ๐ฉโ๐ฆโ๐ฆ|๐จโ๐ฉโ๐งโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโโค๏ธโ๐โ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโ๐ฉโ๐ฆโ๐ฆ|๐ฉโ๐ฉโ๐งโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐จโโค๏ธโ๐จ|๐จโ๐ฆโ๐ฆ|๐จโ๐งโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐จโ๐จโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐จโ๐ฉโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโโค๏ธโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโ๐ฆโ๐ฆ|๐ฉโ๐งโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโ๐ฉโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ณ๏ธโโง|๐ณ๏ธโ๐|๐ดโโ |๐โ๐ฆบ|๐ปโโ|๐โ๐จ|๐จโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฉโ<EFBFBD>[<EFBFBD><EFBFBD>]|๐ฏโโ|๐ฏโโ|๐คผโโ|๐คผโโ|๐งโโ|๐งโโ|๐งโโ|๐งโโ|๐โโฌ)|[#*0-9]๏ธ?โฃ|(?:[ยฉยฎโขโ])|(?:<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|[โผโโนโ-โโฉโชโโโจโโญ-โฏโฑโฒโธ-โบโโชโซโถโโป-โพโ-โโโโโโโ โขโฃโฆโชโฎโฏโธ-โบโโโ-โโ โฃโฅโฆโจโปโฟโ-โโโโโ โกโงโชโซโฐโฑโฝโพโโ
โโโโโโฉโชโฐ-โตโธโบโฝโโโโโโโโโกโณโดโโโโฃโคโกโคดโคตโฌ
-โฌโฌโฌโญโญใฐใฝใใ])(?:(?!๏ธ))|(?:(?:<EFBFBD>[<EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>]|[โโทโนโโ])(?:(?!๏ธ))|(?:<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>]|[โโ]))(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?|(?:๐ด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ|๐ด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ|๐ด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ|๐ฆ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐ง<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐จ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD>]|๐ฉ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐ช<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD>]|๐ซ<EFBFBD>[<EFBF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FBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>]|[โฉ-โฌโฐโณโพโโ
โจโโโ-โโ-โโฐโฟ๎])|๏ธ") |