Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
safe-regex-test
Advanced tools
Give a regex, get a robust predicate function that tests it against a string.
Give a regex, get a robust predicate function that tests it against a string. This will work even if RegExp.prototype
is altered later.
npm install --save safe-regex-test
var regexTester = require('safe-regex-test');
var assert = require('assert');
var tester = regexTester('a');
assert.ok(tester('a'));
assert.notOk(tester('b'));
Simply clone the repo, npm install
, and run npm test
v1.1.0 - 2024-12-12
b4a46bb
5cb24eb
@ljharb/eslint-config
, auto-changelog
, es-value-fixtures
, object-inspect
, tape
e225ca0
call-bound
directly 9be3cd2
call-bind
, is-regex
524b736
aud
with npm audit
f3cd537
14da559
FAQs
Give a regex, get a robust predicate function that tests it against a string.
The npm package safe-regex-test receives a total of 20,603,215 weekly downloads. As such, safe-regex-test popularity was classified as popular.
We found that safe-regex-test 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.