#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
Name |
Last Commit
49843ce6
–
Merge branch 'master' into 'master'
|
History
|
Last Update |
---|---|---|
.. | ||
test | Loading commit data... | |
.npmignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
History.md | Loading commit data... | |
LICENSE | Loading commit data... | |
Makefile | Loading commit data... | |
README.md | Loading commit data... | |
index.js | Loading commit data... | |
package.json | Loading commit data... |