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