Radical.js (1006B)
1 // Copyright 2025 Mathias Bynens. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 author: Mathias Bynens 6 description: > 7 Unicode property escapes for `Radical` 8 info: | 9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests 10 Unicode v17.0.0 11 esid: sec-static-semantics-unicodematchproperty-p 12 features: [regexp-unicode-property-escapes] 13 includes: [regExpUtils.js] 14 ---*/ 15 16 const matchSymbols = buildString({ 17 loneCodePoints: [], 18 ranges: [ 19 [0x002E80, 0x002E99], 20 [0x002E9B, 0x002EF3], 21 [0x002F00, 0x002FD5] 22 ] 23 }); 24 testPropertyEscapes( 25 /^\p{Radical}+$/u, 26 matchSymbols, 27 "\\p{Radical}" 28 ); 29 30 const nonMatchSymbols = buildString({ 31 loneCodePoints: [ 32 0x002E9A 33 ], 34 ranges: [ 35 [0x00DC00, 0x00DFFF], 36 [0x000000, 0x002E7F], 37 [0x002EF4, 0x002EFF], 38 [0x002FD6, 0x00DBFF], 39 [0x00E000, 0x10FFFF] 40 ] 41 }); 42 testPropertyEscapes( 43 /^\P{Radical}+$/u, 44 nonMatchSymbols, 45 "\\P{Radical}" 46 ); 47 48 reportCompare(0, 0);