| Server IP : 74.208.250.37 / Your IP : 216.73.216.233 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/x86_64-linux-gnu/node_modules/re2/scripts/ |
Upload File : |
'use strict';
// This is a light-weight script to make sure that the package works.
const assert = require('assert').strict;
const RE2 = require("../re2");
const sample = "abbcdefabh";
const re1 = new RE2("ab*", "g");
assert(re1.test(sample));
const re2 = RE2("ab*");
assert(re2.test(sample));
const re3 = new RE2("abc");
assert(!re3.test(sample));