Script_-_Makasar.js (1452B)
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 `Script=Makasar` 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 [0x011EE0, 0x011EF8] 20 ] 21 }); 22 testPropertyEscapes( 23 /^\p{Script=Makasar}+$/u, 24 matchSymbols, 25 "\\p{Script=Makasar}" 26 ); 27 testPropertyEscapes( 28 /^\p{Script=Maka}+$/u, 29 matchSymbols, 30 "\\p{Script=Maka}" 31 ); 32 testPropertyEscapes( 33 /^\p{sc=Makasar}+$/u, 34 matchSymbols, 35 "\\p{sc=Makasar}" 36 ); 37 testPropertyEscapes( 38 /^\p{sc=Maka}+$/u, 39 matchSymbols, 40 "\\p{sc=Maka}" 41 ); 42 43 const nonMatchSymbols = buildString({ 44 loneCodePoints: [], 45 ranges: [ 46 [0x00DC00, 0x00DFFF], 47 [0x000000, 0x00DBFF], 48 [0x00E000, 0x011EDF], 49 [0x011EF9, 0x10FFFF] 50 ] 51 }); 52 testPropertyEscapes( 53 /^\P{Script=Makasar}+$/u, 54 nonMatchSymbols, 55 "\\P{Script=Makasar}" 56 ); 57 testPropertyEscapes( 58 /^\P{Script=Maka}+$/u, 59 nonMatchSymbols, 60 "\\P{Script=Maka}" 61 ); 62 testPropertyEscapes( 63 /^\P{sc=Makasar}+$/u, 64 nonMatchSymbols, 65 "\\P{sc=Makasar}" 66 ); 67 testPropertyEscapes( 68 /^\P{sc=Maka}+$/u, 69 nonMatchSymbols, 70 "\\P{sc=Maka}" 71 ); 72 73 reportCompare(0, 0);