#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
c2026f5b
–
npm automatilcally install dependency
|
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... |