Safe Regex Tester

JSON →
library 1.1.0 ·javascript
verified May 27, 2026

safe-regex-test is a JavaScript utility designed to provide a robust and predictable method for testing regular expressions against strings. It addresses a specific security concern by safeguarding the regex testing mechanism from potential alterations or pollution of the global `RegExp.prototype` object, which can lead to unexpected behavior or vulnerabilities in less controlled environments. The current stable version is 1.1.0, last published over a year ago, indicating a mature project with a slow and deliberate release cadence, primarily focused on stability and specific bug fixes rather than frequent feature additions. Its key differentiator is this resilience against prototype tampering, offering a more secure alternative to direct `RegExp.prototype.test` usage, particularly in shared or potentially untrusted execution contexts.

total hits 16
actors 6 distinct systems
last hit 4d ago MJ12bot
GPTBot
5
MetaBot
4
Script
1
ClaudeBot
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇫🇷 France