diff options
author | 2020-11-18 23:26:45 +0100 | |
---|---|---|
committer | 2020-11-18 23:26:45 +0100 | |
commit | 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch) | |
tree | 8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/regexp-clone/README.md | |
parent | 1870f3fdf43707a15fda0f609a021f516f45eb63 (diff) | |
download | website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2 website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip |
rm node_modules
Diffstat (limited to 'node_modules/regexp-clone/README.md')
-rw-r--r-- | node_modules/regexp-clone/README.md | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/node_modules/regexp-clone/README.md b/node_modules/regexp-clone/README.md deleted file mode 100644 index 4a16bad..0000000 --- a/node_modules/regexp-clone/README.md +++ /dev/null @@ -1,42 +0,0 @@ -#regexp-clone -============== - -Clones RegExps with flag and `lastIndex` preservation. - -```js -const regexpClone = require('regexp-clone'); - -const a = /somethin/misguy; -console.log(a.global); // true -console.log(a.ignoreCase); // true -console.log(a.multiline); // true -console.log(a.dotAll); // true -console.log(a.unicode); // true -console.log(a.sticky); // true - -const b = regexpClone(a); -console.log(b.global); // true -console.log(b.ignoreCase); // true -console.log(b.multiline); // true -console.log(b.dotAll); // true -console.log(b.unicode); // true -console.log(b.sticky); // true - -const c = /hi/g; -c.test('this string hi there'); -assert.strictEqual(c.lastIndex, 3); - -const d = regexpClone(c); -assert.strictEqual(d.lastIndex, 3); -d.test('this string hi there'); -assert.strictEqual(d.lastIndex, 14); -assert.strictEqual(c.lastIndex, 3); -``` - -``` -npm install regexp-clone -``` - -## License - -[MIT](https://github.com/aheckmann/regexp-clone/blob/master/LICENSE) |