tor-browser

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

Script_-_Limbu.js (1622B)


      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=Limbu`
      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    0x001940
     19  ],
     20  ranges: [
     21    [0x001900, 0x00191E],
     22    [0x001920, 0x00192B],
     23    [0x001930, 0x00193B],
     24    [0x001944, 0x00194F]
     25  ]
     26 });
     27 testPropertyEscapes(
     28  /^\p{Script=Limbu}+$/u,
     29  matchSymbols,
     30  "\\p{Script=Limbu}"
     31 );
     32 testPropertyEscapes(
     33  /^\p{Script=Limb}+$/u,
     34  matchSymbols,
     35  "\\p{Script=Limb}"
     36 );
     37 testPropertyEscapes(
     38  /^\p{sc=Limbu}+$/u,
     39  matchSymbols,
     40  "\\p{sc=Limbu}"
     41 );
     42 testPropertyEscapes(
     43  /^\p{sc=Limb}+$/u,
     44  matchSymbols,
     45  "\\p{sc=Limb}"
     46 );
     47 
     48 const nonMatchSymbols = buildString({
     49  loneCodePoints: [
     50    0x00191F
     51  ],
     52  ranges: [
     53    [0x00DC00, 0x00DFFF],
     54    [0x000000, 0x0018FF],
     55    [0x00192C, 0x00192F],
     56    [0x00193C, 0x00193F],
     57    [0x001941, 0x001943],
     58    [0x001950, 0x00DBFF],
     59    [0x00E000, 0x10FFFF]
     60  ]
     61 });
     62 testPropertyEscapes(
     63  /^\P{Script=Limbu}+$/u,
     64  nonMatchSymbols,
     65  "\\P{Script=Limbu}"
     66 );
     67 testPropertyEscapes(
     68  /^\P{Script=Limb}+$/u,
     69  nonMatchSymbols,
     70  "\\P{Script=Limb}"
     71 );
     72 testPropertyEscapes(
     73  /^\P{sc=Limbu}+$/u,
     74  nonMatchSymbols,
     75  "\\P{sc=Limbu}"
     76 );
     77 testPropertyEscapes(
     78  /^\P{sc=Limb}+$/u,
     79  nonMatchSymbols,
     80  "\\P{sc=Limb}"
     81 );
     82 
     83 reportCompare(0, 0);