Safe Regex Tester
JSON →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.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇮 Finland · 🇫🇷 France