tor-browser

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

character-class-escape-union-character-class-escape.js (832B)


      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-v-flag]
     14 includes: [regExpUtils.js]
     15 ---*/
     16 
     17 testExtendedCharacterClass({
     18  regExp: /^[\d\d]+$/v,
     19  expression: "[\d\d]",
     20  matchStrings: [
     21    "0",
     22    "1",
     23    "2",
     24    "3",
     25    "4",
     26    "5",
     27    "6",
     28    "7",
     29    "8",
     30    "9"
     31  ],
     32  nonMatchStrings: [
     33    "6\uFE0F\u20E3",
     34    "9\uFE0F\u20E3",
     35    "C",
     36    "\u2603",
     37    "\u{1D306}",
     38    "\u{1F1E7}\u{1F1EA}"
     39  ],
     40 });
     41 
     42 reportCompare(0, 0);