| Server IP : 46.62.235.243 / Your IP : 216.73.216.217 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 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));