tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

property-of-strings-escape-union-string-literal.js (1109B)


      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{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]+$/v,
     19  expression: "[\p{Emoji_Keycap_Sequence}\q{0|2|4|9\uFE0F\u20E3}]",
     20  matchStrings: [
     21    "#\uFE0F\u20E3",
     22    "*\uFE0F\u20E3",
     23    "0",
     24    "0\uFE0F\u20E3",
     25    "1\uFE0F\u20E3",
     26    "2",
     27    "2\uFE0F\u20E3",
     28    "3\uFE0F\u20E3",
     29    "4",
     30    "4\uFE0F\u20E3",
     31    "5\uFE0F\u20E3",
     32    "6\uFE0F\u20E3",
     33    "7\uFE0F\u20E3",
     34    "8\uFE0F\u20E3",
     35    "9\uFE0F\u20E3"
     36  ],
     37  nonMatchStrings: [
     38    "7",
     39    "C",
     40    "\u2603",
     41    "\u{1D306}",
     42    "\u{1F1E7}\u{1F1EA}"
     43  ],
     44 });
     45 
     46 reportCompare(0, 0);