tor-browser

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

match-indices-warp.js (252B)


      1 var re = /A*(B)A*/d;
      2 for (var i = 0; i < 100; i++) {
      3    var match = re.exec("xxxxxAAABAxxxxx");
      4    assertEq(match.indices[0][0], 5);
      5    assertEq(match.indices[0][1], 10);
      6    assertEq(match.indices[1][0], 8);
      7    assertEq(match.indices[1][1], 9);
      8 }