var reFlags = /\w*$/;
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}
export {
  cloneRegExp as default
};
//# sourceMappingURL=_cloneRegExp2.js.map
