Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
clone RegExps with flag preservation
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
History.md
LICENSE
Makefile
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.