character-property-escape-difference-character-class.js (1008B)
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 Extended character classes enabled by the RegExp `v` flag support 8 properties of strings, string literals, and set operations 9 info: | 10 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests 11 Unicode v17.0.0 12 esid: sec-patterns 13 features: [regexp-unicode-property-escapes, regexp-v-flag] 14 includes: [regExpUtils.js] 15 ---*/ 16 17 testExtendedCharacterClass({ 18 regExp: /^[\p{ASCII_Hex_Digit}--[0-9]]+$/v, 19 expression: "[\p{ASCII_Hex_Digit}--[0-9]]", 20 matchStrings: [ 21 "A", 22 "B", 23 "C", 24 "D", 25 "E", 26 "F", 27 "a", 28 "b", 29 "c", 30 "d", 31 "e", 32 "f" 33 ], 34 nonMatchStrings: [ 35 "0", 36 "1", 37 "2", 38 "3", 39 "4", 40 "5", 41 "6", 42 "6\uFE0F\u20E3", 43 "7", 44 "8", 45 "9", 46 "9\uFE0F\u20E3", 47 "\u2603", 48 "\u{1D306}", 49 "\u{1F1E7}\u{1F1EA}" 50 ], 51 }); 52 53 reportCompare(0, 0);