tor-browser

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

Script_-_Sidetic.js (1452B)


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