Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Native RegExp compatible regular expressions for JavaScript. Patterns may be composed of subexpressions and multiple expressions may be combined into a single expression.
Native RegExp compatible regular expressions for JavaScript. Patterns may be composed of subexpressions and multiple expressions may be combined into a single expression.
Regex may be installed on node.js via the node package manager using the command npm install regex
.
You may also install it on RingoJS using the command ringo-admin install aaditmshah/regex
.
You may install it as a component for web apps using the command component install aaditmshah/regex
.
The Regex
constructor is compatible with the native RegExp
constructor. You may pass it a regexp
object or a source string:
var Regex = require("regex");
var regex = new Regex(/(a|b)*abb/);
Like the native RegExp
constructor instances of Regex
have the following methods:
The test
method is used to simply test whether a string matches the regex pattern:
regex.test("abb"); // true
regex.test("aabb"); // true
regex.test("babb"); // true
regex.test("aaabb"); // true
regex.test("ababb"); // true
regex.test("abba"); // false
regex.test("cabb"); // false
The Regex
constructor currently supports the following regex operations:
The following changes were made in this version of Regex:
FAQs
Regex template tag with extended syntax, context-aware interpolation, and always-on best practices
The npm package regex receives a total of 728,004 weekly downloads. As such, regex popularity was classified as popular.
We found that regex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.