GitShow/ljharb/safe-regex-test
ljharb

safe-regex-test

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

by ljharb
Star on GitHubForknpm

JavaScript

7 stars3 forks3 contributorsQuiet · 2mo agoSince 2022MIT

Meet the team

See all 3 on GitHub →
ljharb
ljharb36 contributions
mureinik
mureinik2 contributions
patrickmichalina
patrickmichalina1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 3 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
mureinik
[readme] Improve failed tester exampleMergedPR

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 · 7mo ago
mureinik
[readme] Fix README.md code sampleMergedPR

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 · 7mo ago
mureinik
Code snippet in README.md does not workClosedIssue

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 · 7mo 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: 2mo ago. Community health: 85%. Top contributors: ljharb, mureinik, patrickmichalina.

·@ofershap

Replace github.com with gitshow.dev