El Mehdi Touimi Benjelloun 015b74845c First commit 5 anos atrás
..
test 015b74845c First commit 5 anos atrás
.npmignore 015b74845c First commit 5 anos atrás
.travis.yml 015b74845c First commit 5 anos atrás
History.md 015b74845c First commit 5 anos atrás
LICENSE 015b74845c First commit 5 anos atrás
Makefile 015b74845c First commit 5 anos atrás
README.md 015b74845c First commit 5 anos atrás
index.js 015b74845c First commit 5 anos atrás
package.json 015b74845c First commit 5 anos atrás

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