El Mehdi Touimi Benjelloun 015b74845c First commit | 4 年之前 | |
---|---|---|
.. | ||
test | 4 年之前 | |
.npmignore | 4 年之前 | |
.travis.yml | 4 年之前 | |
History.md | 4 年之前 | |
LICENSE | 4 年之前 | |
Makefile | 4 年之前 | |
README.md | 4 年之前 | |
index.js | 4 年之前 | |
package.json | 4 年之前 |
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