Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions data/all-characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const regenerate = require('regenerate');
exports.UNICODE_SET = regenerate()
.addRange(0x0, 0x10FFFF)

exports.UNICODE_IV_SET = regenerate(0xD7, 0x101, 0x103, 0x105, 0x107, 0x109, 0x10B, 0x10D, 0x10F, 0x111, 0x113, 0x115, 0x117, 0x119, 0x11B, 0x11D, 0x11F, 0x121, 0x123, 0x125, 0x127, 0x129, 0x12B, 0x12D, 0x133, 0x135, 0x13A, 0x13C, 0x13E, 0x140, 0x142, 0x144, 0x146, 0x14B, 0x14D, 0x14F, 0x151, 0x153, 0x155, 0x157, 0x159, 0x15B, 0x15D, 0x15F, 0x161, 0x163, 0x165, 0x167, 0x169, 0x16B, 0x16D, 0x16F, 0x171, 0x173, 0x175, 0x177, 0x17A, 0x17C, 0x17E, 0x180, 0x183, 0x185, 0x188, 0x192, 0x195, 0x19E, 0x1A1, 0x1A3, 0x1A5, 0x1A8, 0x1AD, 0x1B0, 0x1B4, 0x1B6, 0x1C6, 0x1C9, 0x1CC, 0x1CE, 0x1D0, 0x1D2, 0x1D4, 0x1D6, 0x1D8, 0x1DA, 0x1DF, 0x1E1, 0x1E3, 0x1E5, 0x1E7, 0x1E9, 0x1EB, 0x1ED, 0x1F3, 0x1F5, 0x1F9, 0x1FB, 0x1FD, 0x1FF, 0x201, 0x203, 0x205, 0x207, 0x209, 0x20B, 0x20D, 0x20F, 0x211, 0x213, 0x215, 0x217, 0x219, 0x21B, 0x21D, 0x21F, 0x221, 0x223, 0x225, 0x227, 0x229, 0x22B, 0x22D, 0x22F, 0x231, 0x23C, 0x242, 0x247, 0x249, 0x24B, 0x24D, 0x371, 0x387, 0x38B, 0x38D, 0x390, 0x3A2, 0x3D7, 0x3D9, 0x3DB, 0x3DD, 0x3DF, 0x3E1, 0x3E3, 0x3E5, 0x3E7, 0x3E9, 0x3EB, 0x3ED, 0x3EF, 0x3F6, 0x3F8, 0x461, 0x463, 0x465, 0x467, 0x469, 0x46B, 0x46D, 0x46F, 0x471, 0x473, 0x475, 0x477, 0x479, 0x47B, 0x47D, 0x47F, 0x48B, 0x48D, 0x48F, 0x491, 0x493, 0x495, 0x497, 0x499, 0x49B, 0x49D, 0x49F, 0x4A1, 0x4A3, 0x4A5, 0x4A7, 0x4A9, 0x4AB, 0x4AD, 0x4AF, 0x4B1, 0x4B3, 0x4B5, 0x4B7, 0x4B9, 0x4BB, 0x4BD, 0x4BF, 0x4C2, 0x4C4, 0x4C6, 0x4C8, 0x4CA, 0x4CC, 0x4D1, 0x4D3, 0x4D5, 0x4D7, 0x4D9, 0x4DB, 0x4DD, 0x4DF, 0x4E1, 0x4E3, 0x4E5, 0x4E7, 0x4E9, 0x4EB, 0x4ED, 0x4EF, 0x4F1, 0x4F3, 0x4F5, 0x4F7, 0x4F9, 0x4FB, 0x4FD, 0x4FF, 0x501, 0x503, 0x505, 0x507, 0x509, 0x50B, 0x50D, 0x50F, 0x511, 0x513, 0x515, 0x517, 0x519, 0x51B, 0x51D, 0x51F, 0x521, 0x523, 0x525, 0x527, 0x529, 0x52B, 0x52D, 0x10C6, 0x1E01, 0x1E03, 0x1E05, 0x1E07, 0x1E09, 0x1E0B, 0x1E0D, 0x1E0F, 0x1E11, 0x1E13, 0x1E15, 0x1E17, 0x1E19, 0x1E1B, 0x1E1D, 0x1E1F, 0x1E21, 0x1E23, 0x1E25, 0x1E27, 0x1E29, 0x1E2B, 0x1E2D, 0x1E2F, 0x1E31, 0x1E33, 0x1E35, 0x1E37, 0x1E39, 0x1E3B, 0x1E3D, 0x1E3F, 0x1E41, 0x1E43, 0x1E45, 0x1E47, 0x1E49, 0x1E4B, 0x1E4D, 0x1E4F, 0x1E51, 0x1E53, 0x1E55, 0x1E57, 0x1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CDB, 0x2CDD, 0x2CDF, 0x2CE1, 0x2CEC, 0xA641, 0xA643, 0xA645, 0xA647, 0xA649, 0xA64B, 0xA64D, 0xA64F, 0xA651, 0xA653, 0xA655, 0xA657, 0xA659, 0xA65B, 0xA65D, 0xA65F, 0xA661, 0xA663, 0xA665, 0xA667, 0xA669, 0xA66B, 0xA681, 0xA683, 0xA685, 0xA687, 0xA689, 0xA68B, 0xA68D, 0xA68F, 0xA691, 0xA693, 0xA695, 0xA697, 0xA699, 0xA723, 0xA725, 0xA727, 0xA729, 0xA72B, 0xA72D, 0xA733, 0xA735, 0xA737, 0xA739, 0xA73B, 0xA73D, 0xA73F, 0xA741, 0xA743, 0xA745, 0xA747, 0xA749, 0xA74B, 0xA74D, 0xA74F, 0xA751, 0xA753, 0xA755, 0xA757, 0xA759, 0xA75B, 0xA75D, 0xA75F, 0xA761, 0xA763, 0xA765, 0xA767, 0xA769, 0xA76B, 0xA76D, 0xA77A, 0xA77C, 0xA77F, 0xA781, 0xA783, 0xA785, 0xA78C, 0xA791, 0xA797, 0xA799, 0xA79B, 0xA79D, 0xA79F, 0xA7A1, 0xA7A3, 0xA7A5, 0xA7A7, 0xA7A9, 0xA7AF, 0xA7B5, 0xA7B7, 0xA7B9, 0xA7BB, 0xA7BD, 0xA7BF, 0xA7C1, 0xA7C3, 0xA7C8, 0xA7CA, 0xA7D7, 0xA7D9, 0xA7DB, 0x1057B, 0x1058B, 0x10593)
exports.UNICODE_IV_SET = regenerate(0xD7, 0x101, 0x103, 0x105, 0x107, 0x109, 0x10B, 0x10D, 0x10F, 0x111, 0x113, 0x115, 0x117, 0x119, 0x11B, 0x11D, 0x11F, 0x121, 0x123, 0x125, 0x127, 0x129, 0x12B, 0x12D, 0x133, 0x135, 0x13A, 0x13C, 0x13E, 0x140, 0x142, 0x144, 0x146, 0x14B, 0x14D, 0x14F, 0x151, 0x153, 0x155, 0x157, 0x159, 0x15B, 0x15D, 0x15F, 0x161, 0x163, 0x165, 0x167, 0x169, 0x16B, 0x16D, 0x16F, 0x171, 0x173, 0x175, 0x177, 0x17A, 0x17C, 0x17E, 0x180, 0x183, 0x185, 0x188, 0x192, 0x195, 0x19E, 0x1A1, 0x1A3, 0x1A5, 0x1A8, 0x1AD, 0x1B0, 0x1B4, 0x1B6, 0x1C6, 0x1C9, 0x1CC, 0x1CE, 0x1D0, 0x1D2, 0x1D4, 0x1D6, 0x1D8, 0x1DA, 0x1DF, 0x1E1, 0x1E3, 0x1E5, 0x1E7, 0x1E9, 0x1EB, 0x1ED, 0x1F3, 0x1F5, 0x1F9, 0x1FB, 0x1FD, 0x1FF, 0x201, 0x203, 0x205, 0x207, 0x209, 0x20B, 0x20D, 0x20F, 0x211, 0x213, 0x215, 0x217, 0x219, 0x21B, 0x21D, 0x21F, 0x221, 0x223, 0x225, 0x227, 0x229, 0x22B, 0x22D, 0x22F, 0x231, 0x23C, 0x242, 0x247, 0x249, 0x24B, 0x24D, 0x371, 0x387, 0x38B, 0x38D, 0x390, 0x3A2, 0x3D7, 0x3D9, 0x3DB, 0x3DD, 0x3DF, 0x3E1, 0x3E3, 0x3E5, 0x3E7, 0x3E9, 0x3EB, 0x3ED, 0x3EF, 0x3F6, 0x3F8, 0x461, 0x463, 0x465, 0x467, 0x469, 0x46B, 0x46D, 0x46F, 0x471, 0x473, 0x475, 0x477, 0x479, 0x47B, 0x47D, 0x47F, 0x48B, 0x48D, 0x48F, 0x491, 0x493, 0x495, 0x497, 0x499, 0x49B, 0x49D, 0x49F, 0x4A1, 0x4A3, 0x4A5, 0x4A7, 0x4A9, 0x4AB, 0x4AD, 0x4AF, 0x4B1, 0x4B3, 0x4B5, 0x4B7, 0x4B9, 0x4BB, 0x4BD, 0x4BF, 0x4C2, 0x4C4, 0x4C6, 0x4C8, 0x4CA, 0x4CC, 0x4D1, 0x4D3, 0x4D5, 0x4D7, 0x4D9, 0x4DB, 0x4DD, 0x4DF, 0x4E1, 0x4E3, 0x4E5, 0x4E7, 0x4E9, 0x4EB, 0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0x1EE5, 0x1EE7, 0x1EE9, 0x1EEB, 0x1EED, 0x1EEF, 0x1EF1, 0x1EF3, 0x1EF5, 0x1EF7, 0x1EF9, 0x1EFB, 0x1EFD, 0x1F5A, 0x1F5C, 0x1F5E, 0x1FBD, 0x2C61, 0x2C68, 0x2C6A, 0x2C6C, 0x2C71, 0x2C81, 0x2C83, 0x2C85, 0x2C87, 0x2C89, 0x2C8B, 0x2C8D, 0x2C8F, 0x2C91, 0x2C93, 0x2C95, 0x2C97, 0x2C99, 0x2C9B, 0x2C9D, 0x2C9F, 0x2CA1, 0x2CA3, 0x2CA5, 0x2CA7, 0x2CA9, 0x2CAB, 0x2CAD, 0x2CAF, 0x2CB1, 0x2CB3, 0x2CB5, 0x2CB7, 0x2CB9, 0x2CBB, 0x2CBD, 0x2CBF, 0x2CC1, 0x2CC3, 0x2CC5, 0x2CC7, 0x2CC9, 0x2CCB, 0x2CCD, 0x2CCF, 0x2CD1, 0x2CD3, 0x2CD5, 0x2CD7, 0x2CD9, 0x2CDB, 0x2CDD, 0x2CDF, 0x2CE1, 0x2CEC, 0xA641, 0xA643, 0xA645, 0xA647, 0xA649, 0xA64B, 0xA64D, 0xA64F, 0xA651, 0xA653, 0xA655, 0xA657, 0xA659, 0xA65B, 0xA65D, 0xA65F, 0xA661, 0xA663, 0xA665, 0xA667, 0xA669, 0xA66B, 0xA681, 0xA683, 0xA685, 0xA687, 0xA689, 0xA68B, 0xA68D, 0xA68F, 0xA691, 0xA693, 0xA695, 0xA697, 0xA699, 0xA723, 0xA725, 0xA727, 0xA729, 0xA72B, 0xA72D, 0xA733, 0xA735, 0xA737, 0xA739, 0xA73B, 0xA73D, 0xA73F, 0xA741, 0xA743, 0xA745, 0xA747, 0xA749, 0xA74B, 0xA74D, 0xA74F, 0xA751, 0xA753, 0xA755, 0xA757, 0xA759, 0xA75B, 0xA75D, 0xA75F, 0xA761, 0xA763, 0xA765, 0xA767, 0xA769, 0xA76B, 0xA76D, 0xA77A, 0xA77C, 0xA77F, 0xA781, 0xA783, 0xA785, 0xA78C, 0xA791, 0xA797, 0xA799, 0xA79B, 0xA79D, 0xA79F, 0xA7A1, 0xA7A3, 0xA7A5, 0xA7A7, 0xA7A9, 0xA7AF, 0xA7B5, 0xA7B7, 0xA7B9, 0xA7BB, 0xA7BD, 0xA7BF, 0xA7C1, 0xA7C3, 0xA7C8, 0xA7CA, 0xA7CD, 0xA7CF, 0xA7D1, 0xA7D3, 0xA7D5, 0xA7D7, 0xA7D9, 0xA7DB, 0x1057B, 0x1058B, 0x10593)
.addRange(0x0, 0x40)
.addRange(0x5B, 0xB4)
.addRange(0xB6, 0xBF)
Expand Down Expand Up @@ -84,8 +84,6 @@ exports.UNICODE_IV_SET = regenerate(0xD7, 0x101, 0x103, 0x105, 0x107, 0x109, 0x1
.addRange(0xA787, 0xA78A)
.addRange(0xA78E, 0xA78F)
.addRange(0xA793, 0xA795)
.addRange(0xA7CD, 0xA7CF)
.addRange(0xA7D1, 0xA7D5)
.addRange(0xA7DD, 0xA7F4)
.addRange(0xA7F6, 0xAB6F)
.addRange(0xABC0, 0xFB04)
Expand All @@ -97,5 +95,6 @@ exports.UNICODE_IV_SET = regenerate(0xD7, 0x101, 0x103, 0x105, 0x107, 0x109, 0x1
.addRange(0x10CB3, 0x10D4F)
.addRange(0x10D66, 0x1189F)
.addRange(0x118C0, 0x16E3F)
.addRange(0x16E60, 0x1E8FF)
.addRange(0x16E60, 0x16E9F)
.addRange(0x16EB9, 0x1E8FF)
.addRange(0x1E922, 0x10FFFF)
6 changes: 6 additions & 0 deletions data/i-bmp-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -2181,8 +2181,14 @@ module.exports = new Map([
[0xA7CB, 0x264],
[0xA7CC, 0xA7CD],
[0xA7CD, 0xA7CC],
[0xA7CE, 0xA7CF],
[0xA7CF, 0xA7CE],
[0xA7D0, 0xA7D1],
[0xA7D1, 0xA7D0],
[0xA7D2, 0xA7D3],
[0xA7D3, 0xA7D2],
[0xA7D4, 0xA7D5],
[0xA7D5, 0xA7D4],
[0xA7D6, 0xA7D7],
[0xA7D7, 0xA7D6],
[0xA7D8, 0xA7D9],
Expand Down
28 changes: 28 additions & 0 deletions data/iu-foldings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,10 @@ module.exports = new Map([
[0xA7C9, 0xA7CA],
[0xA7CB, 0x264],
[0xA7CC, 0xA7CD],
[0xA7CE, 0xA7CF],
[0xA7D0, 0xA7D1],
[0xA7D2, 0xA7D3],
[0xA7D4, 0xA7D5],
[0xA7D6, 0xA7D7],
[0xA7D8, 0xA7D9],
[0xA7DA, 0xA7DB],
Expand Down Expand Up @@ -1449,6 +1452,31 @@ module.exports = new Map([
[0x16E5D, 0x16E7D],
[0x16E5E, 0x16E7E],
[0x16E5F, 0x16E7F],
[0x16EA0, 0x16EBB],
[0x16EA1, 0x16EBC],
[0x16EA2, 0x16EBD],
[0x16EA3, 0x16EBE],
[0x16EA4, 0x16EBF],
[0x16EA5, 0x16EC0],
[0x16EA6, 0x16EC1],
[0x16EA7, 0x16EC2],
[0x16EA8, 0x16EC3],
[0x16EA9, 0x16EC4],
[0x16EAA, 0x16EC5],
[0x16EAB, 0x16EC6],
[0x16EAC, 0x16EC7],
[0x16EAD, 0x16EC8],
[0x16EAE, 0x16EC9],
[0x16EAF, 0x16ECA],
[0x16EB0, 0x16ECB],
[0x16EB1, 0x16ECC],
[0x16EB2, 0x16ECD],
[0x16EB3, 0x16ECE],
[0x16EB4, 0x16ECF],
[0x16EB5, 0x16ED0],
[0x16EB6, 0x16ED1],
[0x16EB7, 0x16ED2],
[0x16EB8, 0x16ED3],
[0x1E900, 0x1E922],
[0x1E901, 0x1E923],
[0x1E902, 0x1E924],
Expand Down
50 changes: 50 additions & 0 deletions data/iu-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,56 @@ module.exports = new Map([
[0x16E7D, 0x16E5D],
[0x16E7E, 0x16E5E],
[0x16E7F, 0x16E5F],
[0x16EA0, 0x16EBB],
[0x16EA1, 0x16EBC],
[0x16EA2, 0x16EBD],
[0x16EA3, 0x16EBE],
[0x16EA4, 0x16EBF],
[0x16EA5, 0x16EC0],
[0x16EA6, 0x16EC1],
[0x16EA7, 0x16EC2],
[0x16EA8, 0x16EC3],
[0x16EA9, 0x16EC4],
[0x16EAA, 0x16EC5],
[0x16EAB, 0x16EC6],
[0x16EAC, 0x16EC7],
[0x16EAD, 0x16EC8],
[0x16EAE, 0x16EC9],
[0x16EAF, 0x16ECA],
[0x16EB0, 0x16ECB],
[0x16EB1, 0x16ECC],
[0x16EB2, 0x16ECD],
[0x16EB3, 0x16ECE],
[0x16EB4, 0x16ECF],
[0x16EB5, 0x16ED0],
[0x16EB6, 0x16ED1],
[0x16EB7, 0x16ED2],
[0x16EB8, 0x16ED3],
[0x16EBB, 0x16EA0],
[0x16EBC, 0x16EA1],
[0x16EBD, 0x16EA2],
[0x16EBE, 0x16EA3],
[0x16EBF, 0x16EA4],
[0x16EC0, 0x16EA5],
[0x16EC1, 0x16EA6],
[0x16EC2, 0x16EA7],
[0x16EC3, 0x16EA8],
[0x16EC4, 0x16EA9],
[0x16EC5, 0x16EAA],
[0x16EC6, 0x16EAB],
[0x16EC7, 0x16EAC],
[0x16EC8, 0x16EAD],
[0x16EC9, 0x16EAE],
[0x16ECA, 0x16EAF],
[0x16ECB, 0x16EB0],
[0x16ECC, 0x16EB1],
[0x16ECD, 0x16EB2],
[0x16ECE, 0x16EB3],
[0x16ECF, 0x16EB4],
[0x16ED0, 0x16EB5],
[0x16ED1, 0x16EB6],
[0x16ED2, 0x16EB7],
[0x16ED3, 0x16EB8],
[0x1E900, 0x1E922],
[0x1E901, 0x1E923],
[0x1E902, 0x1E924],
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
},
"dependencies": {
"regenerate": "^1.4.2",
"regenerate-unicode-properties": "^10.2.0",
"regenerate-unicode-properties": "^10.2.2",
"regjsgen": "^0.8.0",
"regjsparser": "^0.12.0",
"unicode-match-property-ecmascript": "^2.0.0",
"unicode-match-property-value-ecmascript": "^2.1.0"
"unicode-match-property-value-ecmascript": "^2.2.1"
},
"devDependencies": {
"jsesc": "^3.0.2",
"@unicode/unicode-16.0.0": "^1.6.2"
"@unicode/unicode-17.0.0": "^1.6.12"
}
}
4 changes: 2 additions & 2 deletions scripts/all-characters.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const fs = require('node:fs');
const regenerate = require('regenerate');
require('./utils/regenerate-plugin-to-code.js');

const commonMappings = require('@unicode/unicode-16.0.0/Case_Folding/C/code-points.js');
const simpleMappings = require('@unicode/unicode-16.0.0/Case_Folding/S/code-points.js');
const commonMappings = require('@unicode/unicode-17.0.0/Case_Folding/C/code-points.js');
const simpleMappings = require('@unicode/unicode-17.0.0/Case_Folding/S/code-points.js');

// https://tc39.es/ecma262/#sec-allcharacters
const UNICODE_SET = regenerate().addRange(0x0, 0x10FFFF);
Expand Down
8 changes: 4 additions & 4 deletions scripts/case-mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const flattenMapping = (mapping, extendFilter) => {
return result;
};

const simpleUppercaseMapping = require('@unicode/unicode-16.0.0/Simple_Case_Mapping/Uppercase/symbols.js');
const specialUppercaseMapping = require('@unicode/unicode-16.0.0/Special_Casing/Uppercase/symbols.js');
const simpleUppercaseMapping = require('@unicode/unicode-17.0.0/Simple_Case_Mapping/Uppercase/symbols.js');
const specialUppercaseMapping = require('@unicode/unicode-17.0.0/Special_Casing/Uppercase/symbols.js');

const characterToUppercase = (character) => {
// Note: While the spec requires pulling in the Final_Sigma casing context data
Expand Down Expand Up @@ -127,8 +127,8 @@ const canonicalize = (codepoint) => {
// A. To do a simple case folding, use the mappings with status C + S.
// B. To do a full case folding, use the mappings with status C + F.

const commonMappings = require('@unicode/unicode-16.0.0/Case_Folding/C/code-points.js');
const simpleMappings = require('@unicode/unicode-16.0.0/Case_Folding/S/code-points.js');
const commonMappings = require('@unicode/unicode-17.0.0/Case_Folding/C/code-points.js');
const simpleMappings = require('@unicode/unicode-17.0.0/Case_Folding/S/code-points.js');

// We want the `C` mappings in both directions (i.e. `A` should fold to `a`
// and `a` to `A`), and the `S` mappings in both directions (i.e. `ẞ` should
Expand Down
4 changes: 2 additions & 2 deletions scripts/character-class-escape-sets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const jsesc = require('jsesc');
const regenerate = require('regenerate');
require('./utils/regenerate-plugin-to-code.js');

const Zs = require('@unicode/unicode-16.0.0/General_Category/Space_Separator/code-points.js');
const Zs = require('@unicode/unicode-17.0.0/General_Category/Space_Separator/code-points.js');

const iuMappings = require('../data/iu-mappings.js');
const iuFoldings = require('../data/iu-foldings.js');
Expand Down Expand Up @@ -108,7 +108,7 @@ const stringify = (name, object) => {

const source = [
'// Generated using `npm run build`. Do not edit.\n' +
`'use strict';\n\nconst regenerate = require('regenerate');\nconst UNICODE_IV_SET = require('./all-characters.js').UNICODE_IV_SET`,
`'use strict';\n\nconst regenerate = require('regenerate');\nconst UNICODE_IV_SET = require('./all-characters.js').UNICODE_IV_SET;`,
stringify('REGULAR', ESCAPE_CHARS),
stringify('UNICODE', ESCAPE_CHARS_UNICODE),
stringify('UNICODE_IGNORE_CASE', ESCAPE_CHARS_UNICODE_IGNORE_CASE),
Expand Down
22 changes: 20 additions & 2 deletions tests/fixtures/unicode-property-escape.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ const unicodePropertyEscapePathExpressionsFixtures = [
'sc=Kawi',
]
},
{
'path': 'Script/Unknown',
'expressions': [
'sc=Zzzz',
'sc=Unknown',
'Script=Zzzz',
'Script=Unknown',
]
},
// https://unicode.org/reports/tr18/#RL1.2 item 2b
{
'path': 'Script_Extensions/Greek',
Expand Down Expand Up @@ -687,13 +696,22 @@ const unicodePropertyEscapePathExpressionsFixtures = [
'Emoji_Presentation'
]
},
// https://unicode.org/reports/tr51/proposed.html
// https://unicode.org/reports/tr51/
{
'path': 'Binary_Property/Extended_Pictographic',
'expressions': [
'Extended_Pictographic'
]
},
{
'path': 'Script_Extensions/Unknown',
'expressions': [
'scx=Zzzz',
'scx=Unknown',
'Script_Extensions=Zzzz',
'Script_Extensions=Unknown',
]
},
{
'path': 'Script_Extensions/Yezidi',
'expressions': [
Expand All @@ -713,4 +731,4 @@ const unicodePropertyEscapePathExpressionsFixtures = [
];

exports.unicodePropertyEscapeFixtures = unicodePropertyEscapeFixtures;
exports.unicodePropertyEscapePathExpressionsFixtures = unicodePropertyEscapePathExpressionsFixtures;
exports.unicodePropertyEscapePathExpressionsFixtures = unicodePropertyEscapePathExpressionsFixtures;
Loading