tor-browser

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

Deprecated.js (1366B)


      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 `Deprecated`
      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    0x000149,
     19    0x000673,
     20    0x000F77,
     21    0x000F79,
     22    0x0E0001
     23  ],
     24  ranges: [
     25    [0x0017A3, 0x0017A4],
     26    [0x00206A, 0x00206F],
     27    [0x002329, 0x00232A]
     28  ]
     29 });
     30 testPropertyEscapes(
     31  /^\p{Deprecated}+$/u,
     32  matchSymbols,
     33  "\\p{Deprecated}"
     34 );
     35 testPropertyEscapes(
     36  /^\p{Dep}+$/u,
     37  matchSymbols,
     38  "\\p{Dep}"
     39 );
     40 
     41 const nonMatchSymbols = buildString({
     42  loneCodePoints: [
     43    0x000F78
     44  ],
     45  ranges: [
     46    [0x00DC00, 0x00DFFF],
     47    [0x000000, 0x000148],
     48    [0x00014A, 0x000672],
     49    [0x000674, 0x000F76],
     50    [0x000F7A, 0x0017A2],
     51    [0x0017A5, 0x002069],
     52    [0x002070, 0x002328],
     53    [0x00232B, 0x00DBFF],
     54    [0x00E000, 0x0E0000],
     55    [0x0E0002, 0x10FFFF]
     56  ]
     57 });
     58 testPropertyEscapes(
     59  /^\P{Deprecated}+$/u,
     60  nonMatchSymbols,
     61  "\\P{Deprecated}"
     62 );
     63 testPropertyEscapes(
     64  /^\P{Dep}+$/u,
     65  nonMatchSymbols,
     66  "\\P{Dep}"
     67 );
     68 
     69 reportCompare(0, 0);