sindresorhus

clone-regexp

Clone and modify a RegExp instance

by sindresorhus

JavaScript

JavaScript93.6%
TypeScript6.4%

Commit activity

Last 12 weeks · 4 commits

Full graph →

Community health

4 of 6 standards met

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

Passing keeps the original pattern instead of replacing it with an empty pattern. Other non-empty source overrides work. This prevents clearing a pattern through the existing options API. Reproduction Expected: The empty override should produce the same pattern as , whose normalized source is . Suggested fix: Distinguish an omitted source from an explicitly supplied empty string instead of using a truthiness fallback. Version: 3.0.0. Environment: Node.js v24.19.0.

sohail-fabtech · 1w ago
BendingBender

~~Build broken due to https://github.com/benmosher/eslint-plugin-import/issues/1322.~~

BendingBender · 7y ago
Structured data for AI agents

Repository: sindresorhus/clone-regexp. Description: Clone and modify a RegExp instance Stars: 24, Forks: 9. Primary language: JavaScript. Languages: JavaScript (93.6%), TypeScript (6.4%). License: MIT. Latest release: v4.0.0 (1w ago). Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, Richienb, bluelovers, olsonpm.