Package Exports
- clone-regexp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clone-regexp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
clone-regexp 
Clone and modify a RegExp instance
Install
$ npm install clone-regexp
Usage
const cloneRegexp = require('clone-regexp');
const regex = /[a-z]/gi;
cloneRegexp(regex);
//=> /[a-z]/gi
cloneRegexp(regex) === regex;
//=> false
cloneRegexp(regex, {global: false});
//=> /[a-z]/i
cloneRegexp(regex, {multiline: true});
//=> /[a-z]/gim
cloneRegexp(regex, {source: 'unicorn'});
//=> /unicorn/gi
API
cloneRegexp(regexp, [options])
regex
Type: RegExp
Regex to clone.
options
Type: Object
Properties: source
global
ignoreCase
multiline
sticky
unicode
Optionally modify the cloned RegExp instance.
License
MIT © Sindre Sorhus