ljharb

safe-regex-test

Give a regex, get a robust predicate function that tests it against a string.

by ljharb

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
mureinik

Improve the example in the README where returns , as per the discussion on https://github.com/ljharb/safe-regex-test/pull/4#discussion_r2662500774 Relates to #3.

mureinik · 9mo ago
mureinik

This commit addresses two s in the example in . 1. The 's argument should be a and not a string. 2. There is no such function in Node.js' built-in module. Instead, the function is used with a negation. Fixes #3.

mureinik · 9mo ago
mureinik

When trying to copy-paste the code snippet from , several issues arise: 1. fails with regex 2. If that error is addressed, the line fails with

mureinik · 9mo ago
Structured data for AI agents

Repository: ljharb/safe-regex-test. Description: Give a regex, get a robust predicate function that tests it against a string. Stars: 7, Forks: 3. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 0, open issues: 1. Last activity: 4mo ago. Community health: 85%. Top contributors: ljharb, mureinik, patrickmichalina.