tor-browser

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

ASCII.js (876B)


      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 `ASCII`
      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    [0x000000, 0x00007F]
     20  ]
     21 });
     22 testPropertyEscapes(
     23  /^\p{ASCII}+$/u,
     24  matchSymbols,
     25  "\\p{ASCII}"
     26 );
     27 
     28 const nonMatchSymbols = buildString({
     29  loneCodePoints: [],
     30  ranges: [
     31    [0x00DC00, 0x00DFFF],
     32    [0x000080, 0x00DBFF],
     33    [0x00E000, 0x10FFFF]
     34  ]
     35 });
     36 testPropertyEscapes(
     37  /^\P{ASCII}+$/u,
     38  nonMatchSymbols,
     39  "\\P{ASCII}"
     40 );
     41 
     42 reportCompare(0, 0);