Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

regexp-clone

0.0.1 • Public • Published

regexp-clone

==============

Clones RegExps with flag preservation

var regexpClone = require('regexp-clone');
 
var a = /somethin/g;
console.log(a.global); // true
 
var b = regexpClone(a);
console.log(b.global); // true

License

MIT

Keywords

none

install

npm i regexp-clone

Downloadsweekly downloads

254,833

version

0.0.1

license

none

repository

githubgithub

last publish

collaborators

  • avatar