repo
replacements.fyi

// package

clone-regexp

type: "module"

// preferences

// replacements (1)

snippet::regexp-copy

Simple or drop-in replacement

This package is no longer necessary. You can create a copy of a regular expression using the `RegExp` constructor.

// example

const copyRegExp = (regexp) => new RegExp(regexp);