regexp-clone
Clone RegExps with options
Last updated 12 years ago by aaron .
MIT · Repository · Original npm · Tarball · package.json
$ npm install regexp-clone 
SYNC missed versions from official npm registry.

#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

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

2 Versions

  • 1.0.0                                ...           5 years ago
  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE